[josm-dev] get OsmPrimitive just by ID not knowing type
Christoph Wagner
freemaps.osm at googlemail.com
Tue Dec 21 08:45:09 GMT 2010
Hello list,
I am working at a plugin called TrustOSM to digital sign OSM data with JOSM.
Now I have a fundamental problem, where you may help me to solve it.
I want to save the signatures separate (not in the OSM DB), so I keep the object ID to reference the right one and find it later.
When I load the signatures again I want to load the corresponding OsmPrimitives from the OSM Server, too. But I couldn't find a way to give just an ID and then load the corresponding object.
I have to know which API-Type the object is (Node, Way, Relation). Otherwise I couldn't instantiate an OsmPrimitive because it is abstract.
At this page:
http://josm.openstreetmap.de/wiki/Help/Concepts/Object#Objectids
I found the following todo:
TODO: download object you now the id of
Is that a missing feature in JOSM or is it not possible to find an osm object at the server just knowing the id?
Thank you
Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20101221/75968e2c/attachment.pgp>
More information about the josm-dev
mailing list