[josm-dev] Picture KML support ?
Matija Nalis
mnalis-news at voyager.hr
Sun Dec 20 12:46:52 GMT 2009
Would it be possible to extend JOSM to be able to load pictures from KML ?
(via AgPifoJ plugin or in the core).
Like the Potlatch flash editor can - it loads KML in the following format:
<Document>
<Placemark id="Photo0">
<description>
<![CDATA[<a href="http://photos.openstreetphoto.org/tijs/dataset/testset/test1/DSC00161.JPG">
<img src="http://thumbs.openstreetphoto.org/tijs/dataset/testset/test1/DSC00161.JPG" alt=""/></a>]]>
</description>
<name></name>
<Icon>
<href>http://thumbs.openstreetphoto.org/tijs/dataset/testset/test1/DSC00161.JPG</href>
</Icon>
<Point>
<coordinates>5.37255650003,51.7343925</coordinates>
</Point>
</Placemark>
<Placemark id="Photo1">
[...]
and then shows image placeholders at specified coordinates, and when you
click on them, shows you the thumbnail and/or full picture (from URL encoded
in KML file)...
Such a photo KML files are produced by various tools, for example:
http://wiki.openstreetmap.org/wiki/OpenStreetView
http://wiki.openstreetmap.org/wiki/OpenStreetPhoto
IMO, that would be a great addition.
Currently, I've written a small perl script [1] which downloads and geotags
all the pictures specified in KML, so those can then be loaded in AgPifoJ
plugin; but that is rather suboptimal, as one usually only looks on small
subset of pictures.
[1] http://linux.voyager.hr/osm/openstreetview_dl.txt
--
Opinions above are GNU-copylefted.
More information about the josm-dev
mailing list