And probably with -spat the spatial index is only used for discarding features 
which are outside the area of interest but not for analyzing if they are 
candidates for clipping or not. With complicated features it might be good to 
compare first if the boundary of clipping polygon crosses the bbox of a feature 
- no cross - for sure no need to clip.

-Jukka-
________________________________
Lähettäjä: Even Rouault<mailto:[email protected]>
Lähetetty: ‎25.‎10.‎2015 12:02
Vastaanottaja: [email protected]<mailto:[email protected]>
Kopio: Rahkonen Jukka (MML)<mailto:[email protected]>
Aihe: Re: [gdal-dev] Bad design in -clipsrs?

Le dimanche 25 octobre 2015 10:42:21, Jukka Rahkonen a écrit :
> Hi,
>
> I wonder if this gis.stackexchange question
> http://gis.stackexchange.com/questions/167584/clipping-vs-intersecting
> could indicate that GDAL is doing clipping in a sub-optimal way, perhaps
> without utilizing spatial index

Yes, it doesn't use spatial index if you don't specify one explictly with -
spat. Was discussed recently I believe.
Could/should be improved. Patch welcome if someone wants to have a try.

> or something like that. ArcGIS and
> OpenJUMP are claimed to clip linestrings 100 times faster than GDAL.
>
> -Jukka Rahkonen-
>
> _______________________________________________
> gdal-dev mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

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

Reply via email to