Polygonize - No result

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Polygonize - No result

Lene Fischer
Hi
I´m trying to run Vector to raster (polygonize)

Suspect it´s the path to GDAL.
 I get this error message

QGIS version: 3.10.1-A Coruña
QGIS code revision: ef24c526da
Qt version: 5.11.2
GDAL version: 3.0.2
GEOS version: 3.8.0-CAPI-1.13.1
PROJ version: Rel. 6.2.1, November 1st, 2019
Processing algorithm…
Algorithm 'Polygonize (raster to vector)' starting…
Input parameters:
{ 'BAND' : 1, 'EIGHT_CONNECTEDNESS' : False, 'EXTRA' : '', 'FIELD' : 'DN', 'INPUT' : 'C:/gis/nysted_raster/1_7m.tif', 'OUTPUT' : 'TEMPORARY_OUTPUT' }

GDAL command:
python3 -m gdal_polygonize C:\gis\nysted_raster\1_7m.tif C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg -b 1 -f "GPKG" OUTPUT DN
GDAL command output:
'\\a00143.science.domain\dlt265\Documents'

CMD.EXE was started with the above path as the current directory.

UNC paths are not supported. Defaulting to Windows directory.

C:\PROGRA~1\QGIS3~1.10\bin\python3.exe: No module named gdal_polygonize

Execution completed in 0.33 seconds
Results:
{'OUTPUT': 'C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg'}

Loading resulting layers
The following layers were not correctly generated.<ul><li>C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.

Regards



Lene Fischer
Associate Professor

University of Copenhagen
Department of Geoscience and Natural Resource Management
Forest and Landscape College
Nødebovej 77a
3480 Fredensborg
Denmark


MOB +45 40115084
[hidden email]


 




_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Polygonize - No result

Nicolas Cadieux
Hi,
I think you need to add the gdal path in the QGIS defaults.  Look in the earlier emails and search for “No module named”. I seen others have similar problems in the last few weeks.

Nicolas Cadieux

> Le 5 janv. 2020 à 15:43, Lene Fischer <[hidden email]> a écrit :
>
> Hi
> I´m trying to run Vector to raster (polygonize)
>
> Suspect it´s the path to GDAL.
> I get this error message
>
> QGIS version: 3.10.1-A Coruña
> QGIS code revision: ef24c526da
> Qt version: 5.11.2
> GDAL version: 3.0.2
> GEOS version: 3.8.0-CAPI-1.13.1
> PROJ version: Rel. 6.2.1, November 1st, 2019
> Processing algorithm…
> Algorithm 'Polygonize (raster to vector)' starting…
> Input parameters:
> { 'BAND' : 1, 'EIGHT_CONNECTEDNESS' : False, 'EXTRA' : '', 'FIELD' : 'DN', 'INPUT' : 'C:/gis/nysted_raster/1_7m.tif', 'OUTPUT' : 'TEMPORARY_OUTPUT' }
>
> GDAL command:
> python3 -m gdal_polygonize C:\gis\nysted_raster\1_7m.tif C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg -b 1 -f "GPKG" OUTPUT DN
> GDAL command output:
> '\\a00143.science.domain\dlt265\Documents'
>
> CMD.EXE was started with the above path as the current directory.
>
> UNC paths are not supported. Defaulting to Windows directory.
>
> C:\PROGRA~1\QGIS3~1.10\bin\python3.exe: No module named gdal_polygonize
>
> Execution completed in 0.33 seconds
> Results:
> {'OUTPUT': 'C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg'}
>
> Loading resulting layers
> The following layers were not correctly generated.<ul><li>C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.
>
> Regards
>
>
>
> Lene Fischer
> Associate Professor
>
> University of Copenhagen
> Department of Geoscience and Natural Resource Management
> Forest and Landscape College
> Nødebovej 77a
> 3480 Fredensborg
> Denmark
>
>
> MOB +45 40115084
> [hidden email]
>
>
>  
>
>
>
>
> _______________________________________________
> Qgis-user mailing list
> [hidden email]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Polygonize - No result

Alexander Bruy
Actually there is no issue here with GDAL path, look at the error message again.

The problem is that data located on the network drive. Looks like we
need to check
how network paths are handled in Processing.

пн, 6 січ. 2020 о 02:35 Nicolas Cadieux <[hidden email]> пише:

>
> Hi,
> I think you need to add the gdal path in the QGIS defaults.  Look in the earlier emails and search for “No module named”. I seen others have similar problems in the last few weeks.
>
> Nicolas Cadieux
>
> > Le 5 janv. 2020 à 15:43, Lene Fischer <[hidden email]> a écrit :
> >
> > Hi
> > I´m trying to run Vector to raster (polygonize)
> >
> > Suspect it´s the path to GDAL.
> > I get this error message
> >
> > QGIS version: 3.10.1-A Coruña
> > QGIS code revision: ef24c526da
> > Qt version: 5.11.2
> > GDAL version: 3.0.2
> > GEOS version: 3.8.0-CAPI-1.13.1
> > PROJ version: Rel. 6.2.1, November 1st, 2019
> > Processing algorithm…
> > Algorithm 'Polygonize (raster to vector)' starting…
> > Input parameters:
> > { 'BAND' : 1, 'EIGHT_CONNECTEDNESS' : False, 'EXTRA' : '', 'FIELD' : 'DN', 'INPUT' : 'C:/gis/nysted_raster/1_7m.tif', 'OUTPUT' : 'TEMPORARY_OUTPUT' }
> >
> > GDAL command:
> > python3 -m gdal_polygonize C:\gis\nysted_raster\1_7m.tif C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg -b 1 -f "GPKG" OUTPUT DN
> > GDAL command output:
> > '\\a00143.science.domain\dlt265\Documents'
> >
> > CMD.EXE was started with the above path as the current directory.
> >
> > UNC paths are not supported. Defaulting to Windows directory.
> >
> > C:\PROGRA~1\QGIS3~1.10\bin\python3.exe: No module named gdal_polygonize
> >
> > Execution completed in 0.33 seconds
> > Results:
> > {'OUTPUT': 'C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg'}
> >
> > Loading resulting layers
> > The following layers were not correctly generated.<ul><li>C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.
> >
> > Regards
> >
> >
> >
> > Lene Fischer
> > Associate Professor
> >
> > University of Copenhagen
> > Department of Geoscience and Natural Resource Management
> > Forest and Landscape College
> > Nødebovej 77a
> > 3480 Fredensborg
> > Denmark
> >
> >
> > MOB +45 40115084
> > [hidden email]
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Qgis-user mailing list
> > [hidden email]
> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> _______________________________________________
> Qgis-user mailing list
> [hidden email]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



--
Alexander Bruy
_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Polygonize - No result

ginetto
In reply to this post by Lene Fischer
do you have python_gdal installed and/or check that gdal_polygonize.py is available... a osgeo4w packaging problem can result in associate gdal_polygonize.py to a interpreter. In this case, just link or copy/remane gdal_polygonize.py as gdal_polygonize

Luigi Pirelli

**************************************************************************************************
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Book: Mastering QGIS3 - 3rd Edition
* Hire a team: http://www.qcooperative.net
**************************************************************************************************


On Sun, 5 Jan 2020 at 21:43, Lene Fischer <[hidden email]> wrote:
Hi
I´m trying to run Vector to raster (polygonize)

Suspect it´s the path to GDAL.
 I get this error message

QGIS version: 3.10.1-A Coruña
QGIS code revision: ef24c526da
Qt version: 5.11.2
GDAL version: 3.0.2
GEOS version: 3.8.0-CAPI-1.13.1
PROJ version: Rel. 6.2.1, November 1st, 2019
Processing algorithm…
Algorithm 'Polygonize (raster to vector)' starting…
Input parameters:
{ 'BAND' : 1, 'EIGHT_CONNECTEDNESS' : False, 'EXTRA' : '', 'FIELD' : 'DN', 'INPUT' : 'C:/gis/nysted_raster/1_7m.tif', 'OUTPUT' : 'TEMPORARY_OUTPUT' }

GDAL command:
python3 -m gdal_polygonize C:\gis\nysted_raster\1_7m.tif C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg -b 1 -f "GPKG" OUTPUT DN
GDAL command output:
'\\a00143.science.domain\dlt265\Documents'

CMD.EXE was started with the above path as the current directory.

UNC paths are not supported. Defaulting to Windows directory.

C:\PROGRA~1\QGIS3~1.10\bin\python3.exe: No module named gdal_polygonize

Execution completed in 0.33 seconds
Results:
{'OUTPUT': 'C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg'}

Loading resulting layers
The following layers were not correctly generated.<ul><li>C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.

Regards



Lene Fischer
Associate Professor

University of Copenhagen
Department of Geoscience and Natural Resource Management
Forest and Landscape College
Nødebovej 77a
3480 Fredensborg
Denmark


MOB +45 40115084
[hidden email]


 




_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Polygonize - No result

Bo Victor Thomsen

The problem is that the stand-alone installation of QGS 3.10 (64 bit at least) doesn't set the PYTHONPATH environment variable, so the python interpreter can't find the module. However, the "network installation" of the same QGIS version do set the variable. And that version works without a hitch

If you add a custom variable PYTHONPATH with value C:\PROGRA~1\QGIS3~1.10\apps\Python37;C:\PROGRA~1\QGIS3~1.10\apps\Python37\Scripts to the stand-alone  version of QGIS 3.10 (and restart the program) the "polygonize (raster to vector)" works in this version too.

So I suspect we might have a packaging problem with with the stand-alone installation

-- 
Med venlig hilsen / Kind regards

Bo Victor Thomsen


Den 07-01-2020 kl. 10:08 skrev Luigi Pirelli:
do you have python_gdal installed and/or check that gdal_polygonize.py is available... a osgeo4w packaging problem can result in associate gdal_polygonize.py to a interpreter. In this case, just link or copy/remane gdal_polygonize.py as gdal_polygonize

Luigi Pirelli

**************************************************************************************************
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Book: Mastering QGIS3 - 3rd Edition
* Hire a team: http://www.qcooperative.net
**************************************************************************************************


On Sun, 5 Jan 2020 at 21:43, Lene Fischer <[hidden email]> wrote:
Hi
I´m trying to run Vector to raster (polygonize)

Suspect it´s the path to GDAL.
 I get this error message

QGIS version: 3.10.1-A Coruña
QGIS code revision: ef24c526da
Qt version: 5.11.2
GDAL version: 3.0.2
GEOS version: 3.8.0-CAPI-1.13.1
PROJ version: Rel. 6.2.1, November 1st, 2019
Processing algorithm…
Algorithm 'Polygonize (raster to vector)' starting…
Input parameters:
{ 'BAND' : 1, 'EIGHT_CONNECTEDNESS' : False, 'EXTRA' : '', 'FIELD' : 'DN', 'INPUT' : 'C:/gis/nysted_raster/1_7m.tif', 'OUTPUT' : 'TEMPORARY_OUTPUT' }

GDAL command:
python3 -m gdal_polygonize C:\gis\nysted_raster\1_7m.tif C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg -b 1 -f "GPKG" OUTPUT DN
GDAL command output:
'\\a00143.science.domain\dlt265\Documents'

CMD.EXE was started with the above path as the current directory.

UNC paths are not supported. Defaulting to Windows directory.

C:\PROGRA~1\QGIS3~1.10\bin\python3.exe: No module named gdal_polygonize

Execution completed in 0.33 seconds
Results:
{'OUTPUT': 'C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg'}

Loading resulting layers
The following layers were not correctly generated.<ul><li>C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.

Regards



Lene Fischer
Associate Professor

University of Copenhagen
Department of Geoscience and Natural Resource Management
Forest and Landscape College
Nødebovej 77a
3480 Fredensborg
Denmark


MOB +45 40115084
[hidden email]


 




_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

  


_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
Reply | Threaded
Open this post in threaded view
|

Re: Polygonize - No result

Bo Victor Thomsen
In reply to this post by ginetto

I forgot to mention :

On my WIndows pc the situation is as described in my previous post. However my windows PC is a steaming pile of s... installation wise, so YMMV

 --

Med venlig hilsen / Kind regards

Bo Victor Thomsen

Den 07-01-2020 kl. 10:08 skrev Luigi Pirelli:
do you have python_gdal installed and/or check that gdal_polygonize.py is available... a osgeo4w packaging problem can result in associate gdal_polygonize.py to a interpreter. In this case, just link or copy/remane gdal_polygonize.py as gdal_polygonize

Luigi Pirelli

**************************************************************************************************
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Book: Mastering QGIS3 - 3rd Edition
* Hire a team: http://www.qcooperative.net
**************************************************************************************************


On Sun, 5 Jan 2020 at 21:43, Lene Fischer <[hidden email]> wrote:
Hi
I´m trying to run Vector to raster (polygonize)

Suspect it´s the path to GDAL.
 I get this error message

QGIS version: 3.10.1-A Coruña
QGIS code revision: ef24c526da
Qt version: 5.11.2
GDAL version: 3.0.2
GEOS version: 3.8.0-CAPI-1.13.1
PROJ version: Rel. 6.2.1, November 1st, 2019
Processing algorithm…
Algorithm 'Polygonize (raster to vector)' starting…
Input parameters:
{ 'BAND' : 1, 'EIGHT_CONNECTEDNESS' : False, 'EXTRA' : '', 'FIELD' : 'DN', 'INPUT' : 'C:/gis/nysted_raster/1_7m.tif', 'OUTPUT' : 'TEMPORARY_OUTPUT' }

GDAL command:
python3 -m gdal_polygonize C:\gis\nysted_raster\1_7m.tif C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg -b 1 -f "GPKG" OUTPUT DN
GDAL command output:
'\\a00143.science.domain\dlt265\Documents'

CMD.EXE was started with the above path as the current directory.

UNC paths are not supported. Defaulting to Windows directory.

C:\PROGRA~1\QGIS3~1.10\bin\python3.exe: No module named gdal_polygonize

Execution completed in 0.33 seconds
Results:
{'OUTPUT': 'C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg'}

Loading resulting layers
The following layers were not correctly generated.<ul><li>C:/gis/temp/processing_dc13c7a2a0cf4d22aef37dcd462534db/e5db8073dc414a989e176ea591f28c1c/OUTPUT.gpkg</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.

Regards



Lene Fischer
Associate Professor

University of Copenhagen
Department of Geoscience and Natural Resource Management
Forest and Landscape College
Nødebovej 77a
3480 Fredensborg
Denmark


MOB +45 40115084
[hidden email]


 




_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-- 
Med venlig hilsen / Kind regards

Bo Victor Thomsen

_______________________________________________
Qgis-user mailing list
[hidden email]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user