Currently exporting to OSM seems to be partially broken. It does not work 
with osm2pgsql (which is needed when using mapnik) because it mixes nodes and 
ways, so if a way references a node before it is present in the xml, it's not 
included in the database; I would say this is broken in osm2pgsql (specially 
the part where no errors are reported!), but it makes sense to place nodes, 
ways and relations in that order.
 From what I have been reading, the functions exportOSM and exportCoreOSM in  
Map/MapDocument.cpp do most of the work, using Map/MapFeature.* . I haven't 
spent much time on it but adding a function to MapFeature that returned an 
enum saying whether it's a node, way or relation would probably be a clean 
way to later export it in order, or changing exportCoreOSM's return type.
 exportCoreOSM is currently public, any reason for this? Seems like it belongs 
in private.
 Another issue is that timestamp and user are not exported by merkaartor, but 
they seem to be exported by others, any reason not to?
 Is relation exporting broken as the code says? I haven't had time to check 
it.
 Is anyone currently working on this area? I could help :-)

_______________________________________________
Merkaartor mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/merkaartor

Reply via email to