-
Notifications
You must be signed in to change notification settings - Fork 23
Batch uploaded GPX-files in a zip-file, not showing up in Potlatch 2 #128
Comments
tomhughes |
Yes, that's probably the case. The document that P2 fetches is http://www.openstreetmap.org/api/0.6/gpx/3161726/data.xml . This contains several XML documents appended together, and if you run it through an XML validator it'll squawk:
Most probably the Flash XML parser is deciding that it's an invalid document and refusing to parse any of it. |
Can you make a check if its muliple xmls and splitting it before sending it to the parser? If not, how do you suggest its solved? |
Sure - the string could be split on loading and then each XML document processed individually. It's not something I'm likely to work on any time soon but I'll leave this open in case anyone else wants to. Or you could just merge the source files into one .gpx with GPSBabel: https://stackoverflow.com/questions/38554131/merge-all-gpx-files-within-a-folder-into-one-file-with-gpsbabel |
Thanks for the link! Sounds good that you keep the case open. A good feature if it works! |
I zipped a bunch of gpx-files as mentioned in this link.
https://wiki.openstreetmap.org/wiki/Batch_Upload_of_GPX_(various_tools)
But when i try to load the trace in Potlatch 2 I can't see the trace. Potlatch is not showing any trace.
This is the trace.
https://www.openstreetmap.org/user/magu01/traces/3161726
The API is allready in place and the problem was discused in this breport.
openstreetmap/openstreetmap-website#2455
The text was updated successfully, but these errors were encountered: