<div dir="ltr">I'd like to know how I may get better performance reading a KML file. I have a file with 9,640 points. I've found that it takes about 16 seconds to read through the entire file (see the code snapshot below). The exact same data in Shapefile format takes a second or less to read using the same code snippet. I'm using 1.5.2 with libexpat. Any hints? Thanks.<div>
<br></div><div><div> </div><div>OGRLayer* layer = poDS->GetLayer(0);<br></div><div>int count = layer->GetFeatureCount();</div><div>for (int i = 0; i < count; i++) layer->GetNextFeature(); // 16 seconds</div>
<div><br></div><br>-- <br><a href="http://giscoder.blogspot.com/">http://giscoder.blogspot.com/</a><br>
</div></div>