GeoLocation / GeoTag in SVG
I am wondering how to geotag SVG maps.
My search results
- Geotag is available in metadata formats such as Exif , XMP and GeoTIFF .
- There is even a geotag for SMS (based on the "geo:" URI )
- But there are no geotags in the SVG standard .
- And no Exif / XMB / ... found in SVG ( ExifTool doesn't support SVG )
- No GeoLocation coding standard found in filename (ex: RockwoodRural_geo_50.167958_-97.133185.svg)
-
How GeoLocation can be embedded in XHTML / HTML and SVG is also XML based, so use one of these tricks:
<meta name="ICBM" content="50.167958, -97.133185"> <meta name="geo.position" content="50.167958;-97.133185"\> <meta name="geo.placename" content="Rockwood Rural"\> <meta name="geo.region" content="ca-mb"\> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"> <geo:Point> <geo:lat>55.701</geo:lat> <geo:long>12.552</geo:long> </geo:Point> </rdf:RDF> <span class="geo"> <span class="latitude">50.167958</span> <span class="longitude">-97.133185</span> </span>
My questions
- Someone already GeoTagged SVG image?
- Which XML tag should I use?
- Should I create a specific SVG tag and propose an RFC?
- What do you recommend?
My specific use
For information, I am developing in my spare time a community-based collaboration website: Lmap.org . I would like to embed the Geo-Location in the SVG code => The loaded SVG maps will already contain all the Geo-Location data.
I think SVG GeoTagging might be interesting for maps and building representations, e.g .:
-
Paris Ring Road (public domain SVG)
-
Great Vancouver neighborhood by TastyCakes on English Wikipedia (Own work) CC-BY-3.0
-
Eiffel Tower by Alexander YABORSK on Wikimedia Commons (Public domain)
source to share
The most difficult link I found was Dublin Core DCMI-box .
version 2000
The 2000 version was something like:
<Box name="Duchess copper mine">
<northlimit>-21.3</northlimit>
<eastlimit>139.9</eastlimit>
<southlimit>-21.4</southlimit>
<westlimit>139.8</westlimit>
<uplimit>400</uplimit>
<downlimit>-100</downlimit>
</Box>
osgeo.org bring DClite4G schema:
<dct:spatial>
<Box projection="EPSG:4326" name="Geographic">
<northlimit>34.353</northlimit>
<eastlimit>-96.223</eastlimit>
<southlimit>28.229</southlimit>
<westlimit>-108.44</westlimit>
</Box>
</dct:spatial>
They also have an RDF list
version 2006
2006 Dublin Core DCMI-box values used with their generator (click on DCMI-box) suggest XML syntax as follows:
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dcterms="http://purl.org/dc/terms/">
<dcterms:spatial xsi:type="dcterms:Box">
name=france;northlimit=55;
eastlimit=10;
southlimit=44;
westlimit=-5;
projection=ESPXYZ;
</dcterms:spatial>
</metadata>
you can naturally change the units.
source to share