<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div>
<div style="font-family:Calibri,sans-serif; font-size:11pt">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.<br>
<br>
-Jukka-<br>
</div>
</div>
<div dir="ltr">
<hr>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Lähettäjä:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:even.rouault@spatialys.com">Even Rouault</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Lähetetty:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">‎25.‎10.‎2015 12:02</span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Vastaanottaja:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Kopio:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">Rahkonen Jukka (MML)</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Aihe:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">Re: [gdal-dev] Bad design in -clipsrs?</span><br>
<br>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Le dimanche 25 octobre 2015 10:42:21, Jukka Rahkonen a écrit :<br>
> Hi,<br>
> <br>
> I wonder if this gis.stackexchange question<br>
> <a href="http://gis.stackexchange.com/questions/167584/clipping-vs-intersecting">
http://gis.stackexchange.com/questions/167584/clipping-vs-intersecting</a><br>
> could indicate that GDAL is doing clipping in a sub-optimal way, perhaps<br>
> without utilizing spatial index <br>
<br>
Yes, it doesn't use spatial index if you don't specify one explictly with -<br>
spat. Was discussed recently I believe.<br>
Could/should be improved. Patch welcome if someone wants to have a try.<br>
<br>
> or something like that. ArcGIS and<br>
> OpenJUMP are claimed to clip linestrings 100 times faster than GDAL.<br>
> <br>
> -Jukka Rahkonen-<br>
> <br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
> gdal-dev@lists.osgeo.org<br>
> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com">http://www.spatialys.com</a><br>
</div>
</span></font>
</body>
</html>