[gdal-dev] gdalwarp bug with version GDAL 2.2.1, released 2017/06/23

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] gdalwarp bug with version GDAL 2.2.1, released 2017/06/23

Vincent Thierion

Hello,


I observed a gdalwarp problem with a little extent ogr vector file on GDAL 2.2.1, released 2017/06/23.


I try the following command :


gdalwarp -overwrite -cutline vect.shp -crop_to_cutline -cwhere "FID=0" rast.tif rast_0.tif


the command begins but never finish :


Creating output file that is 15P x 1L.
Processing input file rast.tif.
Using internal nodata values (e.g. 0) for image rast.tif.
Copying nodata values from source rast.tif to destination rast_0.tif.
0


I tried the same command on GDAL 2.0.1, released 2015/09/15 without any problem.


With GDAL 2.2.1, released 2017/06/23, I get around this problem by using the option -tap


gdalwarp -tap -tr 10 10 -overwrite -cutline vect.shp -crop_to_cutline -cwhere "FID=0" rast.tif rast_0.tif


But it's not a satisfactory solution, too large ouput raster file.


You can upload data here :

https://filesender.renater.fr/?s=download&token=2059f4d0-a06e-b9bf-85d7-22ddcd2ec0e3


Thanks in advance


Vincent


_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: gdalwarp bug with version GDAL 2.2.1, released 2017/06/23

Even Rouault-2
>
> You can upload data here :
>
> https://filesender.renater.fr/?s=download&token=2059f4d0-a06e-b9bf-85d7-22dd
> cd2ec0e3
>

Vincent,

the above zip doesn't contain the vect.shp/.dbf/.shx/.prj and rast.tif files
that are needed to reproduce.

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: gdalwarp bug with version GDAL 2.2.1, released 2017/06/23

Vincent Thierion
You can download the files here : https://filesender.renater.fr/?s=download&token=a09226c8-4445-c958-486a-a5912434f663

I hope it's better.

Vincent
________________________________________
De : Even Rouault <[hidden email]>
Envoyé : lundi 28 mai 2018 13:06
À : [hidden email]
Cc : Vincent Thierion
Objet : Re: [gdal-dev]  gdalwarp bug with version GDAL 2.2.1, released 2017/06/23

>
> You can upload data here :
>
> https://filesender.renater.fr/?s=download&token=2059f4d0-a06e-b9bf-85d7-22dd
> cd2ec0e3
>

Vincent,

the above zip doesn't contain the vect.shp/.dbf/.shx/.prj and rast.tif files
that are needed to reproduce.

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: gdalwarp bug with version GDAL 2.2.1, released 2017/06/23

Even Rouault-2
On lundi 28 mai 2018 12:26:56 CEST Vincent Thierion wrote:
> You can download the files here :
> https://filesender.renater.fr/?s=download&token=a09226c8-4445-c958-486a-a59
> 12434f663
>

I don't reproduce the problem with GDAL 2.2.4 and later

Even

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev