[OSM-talk] undeleting ways?
richard at systemed.net
Sun Feb 8 13:52:11 GMT 2009
> Hmmm .... but potlatch must have some way of querying for deleted
> ways - if it is not the main API, is it something documented
> somewhere? Some hidden API? Or should I try my luck with browsing
> through potlatch sources or perhaps using wireshark to find out?
Or you could ask me. :)
It's a 'proper' Rails method, but it's only exposed via Potlatch's AMF
calls, not via the XML interface used by other clients. If you wanted to
access it from a non-Flash environment you'd have to use an AMF library, in
your scripting language of choice - available at the least for Ruby, Perl,
Python and PHP - to generate the calls.
You can then call whichways_deleted(left,bottom,right,top) in
/api/0.5/amf/read to return an array of deleted ways within the bbox; and
getway_old(way_id,0) to retrieve one of these deleted ways. Let me know if
you want to do this and I can explain further how the deleted way is
View this message in context: http://www.nabble.com/undeleting-ways--tp21808073p21899082.html
Sent from the OpenStreetMap - General mailing list archive at Nabble.com.
More information about the talk