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.

OGRLayer* layer = poDS->GetLayer(0);
int count = layer->GetFeatureCount();
for (int i = 0; i < count; i++) layer->GetNextFeature(); // 16 seconds


-- 
http://giscoder.blogspot.com/
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to