[OSM-talk] User umehlig and some really nasty edits

Gabriel Ebner ge at gabrielebner.at
Mon Feb 11 11:30:02 GMT 2008


On Mon, Feb 11, 2008 at 08:44:21AM +0000, Tom Hughes wrote:
> I don't know if there is a page anywhere that documents the
> format of JOSM change files?

Nothing sophisticated.  Everything with a negative id gets created, everything
with an action="modify" attribute is uploaded, and everything with an
action="delete" attribute is deleted.

For example the following will cause one PUT to /api/0.5/node/create, one PUT
to /api/0.5/way/1234 and one DELETE to /api/0.5/way/5678.

    <node id="-1" lat="0" lon="0"/>
    <way id="1234" action="modify">
      <nd ref="100"/>
      <nd ref="200"/>
    </way>
    <way id="5678" action="delete">
      <nd ref="600"/>
      <nd ref="700"/>
    </way>

  Gabriel.





More information about the talk mailing list