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.


_______________________________________________
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev

Reply via email to