Re: [Qgis-user] question about GDAL module ( QGIS 3.4.14-1 and 3.10.1-A)
Thanks so much that worked! For neophytes like me- I had to add a custom environmental variable called PYTHONPATH and set that to the *.py modules location (searched my C drive to see the various locations, selected the one with the root paths in the installation being used). … Cinda Graubard GeoMax 303.440.4539 office 720.272.9812 mobile GIS for Mineral Exploration 2D and 3D Visualization, Integration, Analysis, Modeling Project and Data Management Data capture and conversion Databases Software Sales and Training -Original Message- From: Qgis-user On Behalf Of andreaerdna Sent: Sunday, December 15, 2019 2:53 AM To: qgis-user@lists.osgeo.org Subject: Re: [Qgis-user] question about GDAL module ( QGIS 3.4.14-1 and 3.10.1-A) The bug was also reported on the QGIS GitHub Issue tracker: https://github.com/qgis/QGIS/issues/33386 Waiting for a bugfix, You can tray to workaround the bug setting the PYTHONPATH environmental variable (in QGIS, Settings->Options->System->Environment) to the path of the folder in Settings->Options->System->which there is the gdal_polygonize.py file. Best regards. Andrea Cinda Graubard wrote > I'm trying to access a few gdal modules and keep getting this message: > > 2019-12-10T11:22:46 INFOGDAL execution console output > C:\OSGeo4W64\bin\python3.exe: No module named > gdal_polygonize > > I encountered this problem with 3.10.1-A and then went back and > installed the last ltr 3.4-14-1 and have the same error. -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] question about GDAL module ( QGIS 3.4.14-1 and 3.10.1-A)
The bug was also reported on the QGIS GitHub Issue tracker: https://github.com/qgis/QGIS/issues/33386 Waiting for a bugfix, You can tray to workaround the bug setting the PYTHONPATH environmental variable (in QGIS, Settings->Options->System->Environment) to the path of the folder in which there is the gdal_polygonize.py file. Best regards. Andrea Cinda Graubard wrote > I'm trying to access a few gdal modules and keep getting this message: > > 2019-12-10T11:22:46 INFOGDAL execution console output > C:\OSGeo4W64\bin\python3.exe: No module named gdal_polygonize > > I encountered this problem with 3.10.1-A and then went back and installed > the last ltr 3.4-14-1 and have the same error. -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] question about GDAL module ( QGIS 3.4.14-1 and 3.10.1-A)
It seems another user has a very similar problem: QGIS 3: Python doesn't find gdal module https://gis.stackexchange.com/questions/344713/qgis-3-python-doesnt-find-gdal-module -- Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-User-f4125267.html ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] question about GDAL module ( QGIS 3.4.14-1 and 3.10.1-A)
Hi Cinda, I cant help diagnose the issue, but I can give you an alternative method of using gdal_polygonize Im assuming you are using this under Windows. Using the OSGeo4W Shell, navigate to the folder containing the dataset and then use gdal_polygonize raster_in.tif -f "ESRI Shapefile" shapefile_out.shp You can alternatively use the full file path also instead of navigating to a specific folder. A full list of additional commands can be found here https://gdal.org/programs/gdal_polygonize.html It should be quicker anyway than trying to run it from within QGIS Regards, Richard -- Richard McDonnell MSc Geographic Information Systems, FME Certified Professional FME Certified Professional FRM Data Management -- Oifig na nOibreacha Poibl? Office of Public Works Sr?id Jonathan Swift, Baile ?tha Troim, Co na M?, C15 NX36 Jonathan Swift Street, Trim, Co Meath, C15 NX36 -- M +353 87 688 5964 T +353 1 647 6543 https://www.opw.ie -- To send me files larger than 30MB, please use the link below https://filetransfer.opw.ie/filedrop/richard.mcdonn...@opw.ie Email Disclaimer: https://www.opw.ie/en/disclaimer/ From: Qgis-user On Behalf Of Cinda Graubard Sent: 10 December 2019 19:46 To: qgis-user@lists.osgeo.org Subject: [Qgis-user] question about GDAL module ( QGIS 3.4.14-1 and 3.10.1-A) I'm trying to access a few gdal modules and keep getting this message: 2019-12-10T11:22:46 INFOGDAL execution console output C:\OSGeo4W64\bin\python3.exe: No module named gdal_polygonize I encountered this problem with 3.10.1-A and then went back and installed the last ltr 3.4-14-1 and have the same error. I've checked the packages installed through the advanced installer, and the GDAL/OGR library and comandline tools are included, though I'm not extremely familiar with this interface so I could be missing something. Can anyone suggest a solution for this? Thanks, Cinda ... Cinda Graubard GeoMax 303.440.4539 office 720.272.9812 mobile GIS for Mineral Exploration 2D and 3D Visualization, Integration, Analysis, Modeling Project and Data Management Data capture and conversion Databases Software Sales and Training [earthtiny] ___ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user