qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.29k stars 2.96k forks source link

Processing "Gdal Clip Vector Layer By Extent" and "Clip Vector by Polygons" #24187

Closed qgib closed 6 years ago

qgib commented 7 years ago

Author Name: matteo ghetta (@ghtmtt) Original Redmine Issue: 16277 Affected QGIS version: master Redmine category:processing/gdal


Both algorithms fail during the running giving both this error:

@2017-03-03T13:23:50 0 ogr2ogr -spat 1.653169014084507 4.682350352112676 3.218926056338028 6.329445422535212 -clipsrc spat_extent None "/tmp/processingb0fbced9ffc24643bc6020cbcf8125d2/754c2e52a42e452f8484dc0c198c7f35/OUTPUTLAYER.shp" /tmp/processingb0fbced9ffc24643bc6020cbcf8125d2/dc7dab16739743749d2d6d5b63f3613b/polys.shp polys 2017-03-03T13:23:50 0 GDAL execution console output FAILURE:

        Unable to open datasource `/tmp/processingb0fbced9ffc24643bc6020cbcf8125d2/754c2e52a42e452f8484dc0c198c7f35/OUTPUTLAYER.shp' with the following drivers.

          -> PCIDSK

          -> netCDF

          -> JP2OpenJPEG

          -> PDF

          -> ESRI Shapefile

          -> MapInfo File

          -> UK .NTF

          -> OGR_SDTS

          -> S57

          -> DGN

          -> OGR_VRT

          -> REC

          -> Memory

          -> BNA

          -> CSV

          -> NAS

          -> GML

          -> GPX

          -> LIBKML

          -> KML

          -> GeoJSON

          -> Interlis 1

          -> Interlis 2

          -> OGR_GMT

          -> GPKG

          -> SQLite

          -> OGR_DODS

          -> ODBC

          -> WAsP

          -> PGeo

          -> MSSQLSpatial

          -> OGR_OGDI

          -> PostgreSQL

          -> MySQL

          -> OpenFileGDB

          -> XPlane

          -> DXF

          -> Geoconcept

          -> GeoRSS

          -> GPSTrackMaker

          -> VFK

          -> PGDUMP

          -> OSM

          -> GPSBabel

          -> SUA

          -> OpenAir

          -> OGR_PDS

          -> WFS

          -> HTF

          -> AeronavFAA

          -> Geomedia

          -> EDIGEO

          -> GFT

          -> SVG

          -> CouchDB

          -> Cloudant

          -> Idrisi

          -> ARCGEN

          -> SEGUKOOA

          -> SEGY

          -> XLS

          -> ODS

          -> XLSX

          -> ElasticSearch

          -> Walk

          -> Carto

          -> AmigoCloud

          -> SXF

          -> Selafin

          -> JML

          -> PLSCENES

          -> CSW

          -> VDV

          -> TIGER

          -> AVCBin

          -> AVCE00

          -> HTTP

2017-03-03T13:23:50 2 Error loading result layer: Traceback (most recent call last): File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/gui/Postprocessing.py", line 75, in handleAlgorithmResults out.name)) File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/tools/dataobjects.py", line 223, in load

qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


Only master is affected or also 2.18.4?


qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


@2017-03-03T13:23:50 0 ogr2ogr -spat 1.653169014084507 4.682350352112676 3.218926056338028 6.329445422535212 -clipsrc spat_extent None "/tmp/processingb0fbced9ffc24643bc6020cbcf8125d2/754c2e52a42e452f8484dc0c198c7f35/OUTPUTLAYER.shp" /tmp/processingb0fbced9ffc24643bc6020cbcf8125d2/dc7dab16739743749d2d6d5b63f3613b/polys.shp polys 2017-03-03T13:23:50 0 GDAL execution console output FAILURE:

        Unable to open datasource `/tmp/processingb0fbced9ffc24643bc6020cbcf8125d2/754c2e52a42e452f8484dc0c198c7f35/OUTPUTLAYER.shp' with the following drivers.

          -> PCIDSK

          -> netCDF

          -> JP2OpenJPEG

          -> PDF

          -> ESRI Shapefile

          -> MapInfo File

          -> UK .NTF

          -> OGR_SDTS

          -> S57

          -> DGN

          -> OGR_VRT

          -> REC

          -> Memory

          -> BNA

          -> CSV

          -> NAS

          -> GML

          -> GPX

          -> LIBKML

          -> KML

          -> GeoJSON

          -> Interlis 1

          -> Interlis 2

          -> OGR_GMT

          -> GPKG

          -> SQLite

          -> OGR_DODS

          -> ODBC

          -> WAsP

          -> PGeo

          -> MSSQLSpatial

          -> OGR_OGDI

          -> PostgreSQL

          -> MySQL

          -> OpenFileGDB

          -> XPlane

          -> DXF

          -> Geoconcept

          -> GeoRSS

          -> GPSTrackMaker

          -> VFK

          -> PGDUMP

          -> OSM

          -> GPSBabel

          -> SUA

          -> OpenAir

          -> OGR_PDS

          -> WFS

          -> HTF

          -> AeronavFAA

          -> Geomedia

          -> EDIGEO

          -> GFT

          -> SVG

          -> CouchDB

          -> Cloudant

          -> Idrisi

          -> ARCGEN

          -> SEGUKOOA

          -> SEGY

          -> XLS

          -> ODS

          -> XLSX

          -> ElasticSearch

          -> Walk

          -> Carto

          -> AmigoCloud

          -> SXF

          -> Selafin

          -> JML

          -> PLSCENES

          -> CSW

          -> VDV

          -> TIGER

          -> AVCBin

          -> AVCE00

          -> HTTP

2017-03-03T13:23:50 2 Error loading result layer: Traceback (most recent call last): File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/gui/Postprocessing.py", line 75, in handleAlgorithmResults out.name)) File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/tools/dataobjects.py", line 223, in load

@2017-03-03T13:23:50 0 ogr2ogr -spat 1.653169014084507 4.682350352112676 3.218926056338028 6.329445422535212 -clipsrc spat_extent None "/tmp/processingb0fbced9ffc24643bc6020cbcf8125d2/754c2e52a42e452f8484dc0c198c7f35/OUTPUTLAYER.shp" /tmp/processingb0fbced9ffc24643bc6020cbcf8125d2/dc7dab16739743749d2d6d5b63f3613b/polys.shp polys 2017-03-03T13:23:50 0 GDAL execution console output FAILURE:

        Unable to open datasource `/tmp/processingb0fbced9ffc24643bc6020cbcf8125d2/754c2e52a42e452f8484dc0c198c7f35/OUTPUTLAYER.shp' with the following drivers.

          -> PCIDSK

          -> netCDF

          -> JP2OpenJPEG

          -> PDF

          -> ESRI Shapefile

          -> MapInfo File

          -> UK .NTF

          -> OGR_SDTS

          -> S57

          -> DGN

          -> OGR_VRT

          -> REC

          -> Memory

          -> BNA

          -> CSV

          -> NAS

          -> GML

          -> GPX

          -> LIBKML

          -> KML

          -> GeoJSON

          -> Interlis 1

          -> Interlis 2

          -> OGR_GMT

          -> GPKG

          -> SQLite

          -> OGR_DODS

          -> ODBC

          -> WAsP

          -> PGeo

          -> MSSQLSpatial

          -> OGR_OGDI

          -> PostgreSQL

          -> MySQL

          -> OpenFileGDB

          -> XPlane

          -> DXF

          -> Geoconcept

          -> GeoRSS

          -> GPSTrackMaker

          -> VFK

          -> PGDUMP

          -> OSM

          -> GPSBabel

          -> SUA

          -> OpenAir

          -> OGR_PDS

          -> WFS

          -> HTF

          -> AeronavFAA

          -> Geomedia

          -> EDIGEO

          -> GFT

          -> SVG

          -> CouchDB

          -> Cloudant

          -> Idrisi

          -> ARCGEN

          -> SEGUKOOA

          -> SEGY

          -> XLS

          -> ODS

          -> XLSX

          -> ElasticSearch

          -> Walk

          -> Carto

          -> AmigoCloud

          -> SXF

          -> Selafin

          -> JML

          -> PLSCENES

          -> CSW

          -> VDV

          -> TIGER

          -> AVCBin

          -> AVCE00

          -> HTTP

2017-03-03T13:23:50 2 Error loading result layer: Traceback (most recent call last): File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/gui/Postprocessing.py", line 75, in handleAlgorithmResults out.name)) File "/home/matteo/lavori/QGIS/build-qgis3/output/python/plugins/processing/tools/dataobjects.py", line 223, in load

qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


qgib commented 7 years ago

Author Name: Giovanni Manghi (@gioman)


As they work ok on 2.18.10 I assume that at the time of the ticket was filed it referred to qgsi3/master. At this moment the GDAL algs are not even available, leaving this open just as "reminder" that once the GDAL/OGR tools will be restored this ticket must be re-checked.


qgib commented 6 years ago

Author Name: Giovanni Manghi (@gioman)


They seems to work ok on master/qgis3, please reopen if necessary.