{"id":17077,"date":"2013-02-05T20:56:33","date_gmt":"2013-02-06T01:56:33","guid":{"rendered":"https:\/\/nuxx.net\/blog\/?p=17077"},"modified":"2020-12-27T10:08:10","modified_gmt":"2020-12-27T15:08:10","slug":"osm2ai-pl-w-josm-xml-support","status":"publish","type":"post","link":"https:\/\/nuxx.net\/blog\/2013\/02\/05\/osm2ai-pl-w-josm-xml-support\/","title":{"rendered":"osm2ai.pl w\/ JOSM XML Support"},"content":{"rendered":"<p>When working up some map stuff and trying to <a href=\"https:\/\/nuxx.net\/blog\/2012\/06\/05\/mtb-trail-mapping-workflow-with-openstreetmaps\/\">follow my own OSM workflow<\/a> I ran into a quirk where the <tt>osm2ai.pl<\/tt> script wouldn&#8217;t deal with OSM XML coming out of <a href=\"josm.openstreetmap.de\">JOSM<\/a>.<\/p>\n<p>Thank to help from a few folks on IRC I now have <a href=\"http:\/\/nuxx.net\/files\/osm2ai.pl\">this updated version of <tt>osm2ai.pl<\/tt><\/a> available and it will successfully parse files from JOSM.<\/p>\n<p>The root cause of this problem is the script parsing XML by hand, but as I didn&#8217;t have the time (or knowledge) to fix the problem by using an XML parser, this hack which deals with differing quote types and extra spacing, was put into place. It works, and I was able to get the map that I promised to someone complete.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When working up some map stuff and trying to follow my own OSM workflow I ran into a quirk where the osm2ai.pl script wouldn&#8217;t deal&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/nuxx.net\/blog\/2013\/02\/05\/osm2ai-pl-w-josm-xml-support\/\">Continue reading<span class=\"screen-reader-text\">osm2ai.pl w\/ JOSM XML Support<\/span><\/a><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,11,57],"tags":[],"class_list":["post-17077","post","type-post","status-publish","format-standard","hentry","category-computers","category-making-things","category-mapping","entry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/17077","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/comments?post=17077"}],"version-history":[{"count":3,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/17077\/revisions"}],"predecessor-version":[{"id":19310,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/posts\/17077\/revisions\/19310"}],"wp:attachment":[{"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/media?parent=17077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/categories?post=17077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nuxx.net\/blog\/wp-json\/wp\/v2\/tags?post=17077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}