[OSM-dev] Escaping special characters when writing tags in OSM files with osm-subset.pl & write.pm
Joerg Ostertag (OSM Munich/Germany)
openstreetmap at ostertag.name
Fri Nov 10 10:55:24 GMT 2006
> > > I've not exposed tag2osm from Writer.pm. I'm thinking that the better
> > > long term answer is for the writer code to be enhanced to support
> > > on-the-fly data output as is done by osm-subset.pl then all the XML
> > > writing can be moved over into Writer.pm. This could be used to reduce
> > > the memory usage of my simplify.pl code too.
> > If I understand you correctly; you want to split the writer into
> > something like write_header,write_node,write_segment,write_way,write_end?
> Yes, that sounds right. If the routines wrote only a single item, then
> there could also be a layer immediately above which would write out a
> sequence from an hash. Then the existing write_osm_file() could be
> re-implemented call each of these functions to preserve support for the
> existing API.
So it'll stay backward compatible.
More information about the dev