[gdal-dev] clipping a vector with gdal.VectorTranslate

Even Rouault even.rouault at spatialys.com
Tue Aug 11 10:54:55 PDT 2020


On mardi 11 août 2020 09:59:25 CEST MRRAJESH wrote:
> Developers,
> 
> I am trying to set the "-clipsrc" in multiple ways in C# and C++, getting
> "cannot load source clip geometry" error. Anything wrong here?
> 
> Ogr2ogr it is working fine (ogr2ogr -clipsrc
> -9943693.00823441,5321545.9084732,-9943540.13417786,5321393.03441666 -f MVT
> .......)

The doc indicates space separated values. I'm not sure why the above would work

> 
>       "-dsco", "FORMAT=DIRECTORY",
>       "-dsco", "TILE_EXTENSION=mvt",
>       "-dsco", "COMPRESS=NO",
>       "-dsco", "MINZOOM=18",
>       "-dsco", "MAXZOOM=18",
>       "-clipsrc",
> "-9943693.00823441,5321545.9084732,-9943540.13417786,5321393.03441666"

"-clipsrc",
"-9943693.00823441",
"5321545.9084732","
-9943540.13417786",
"5321393.03441666"


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20200811/b2bb48d0/attachment.html>


More information about the gdal-dev mailing list