[gdal-dev] KML Parsing Performance
Joel Odom
joelodom at gmail.com
Wed Oct 8 14:23:05 EDT 2008
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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20081008/bb57c665/attachment.html
More information about the gdal-dev
mailing list