[Openstreetmap] qgis isn't so memory hungry

Matt Amos matt at matt-amos.uklinux.net
Sun Dec 12 23:42:37 GMT 2004


On Saturday 11 December 2004 12:18, Petter Reinholdtsen wrote:
> (snip)
> Thus suggest to me that the GPX import filter in qgis (and the
> gpx2shp convert program) uses a lot of memory, and that qgis is not
> the memory hungry one.

its possible that the gpx converters in qgis and gpx2shp are both 
using libxml/xerces which both import the xml tree into memory in a 
"navigable" manner, i.e: all the tree nodes are indexed with pointers 
and the ascii/utf-8 values in memory. this might be why it requires 
so much memory.

i was using libxml for the gpx output of my sirf driver, but its just 
too annoying to have the whole tree built in memory before outputting 
it, so i replaced it with a (kinda hacky) text output, i.e:
cout << "<xml...>";
which is flexible enough for my needs.

cya,

matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20041212/1ff6967f/attachment.pgp>


More information about the talk mailing list