svggeolocationgeotagginggisxml-formatting

Geographical identification location (GeoLocation/GeoTag) in SVG


I am wondering how to geotag SVG maps.

My search results

My questions

  1. Does someone has already GeoTagged an SVG image?
  2. What XML tag to use?
  3. Should I create a specific SVG tag and propose an RFC?
  4. What do you advice?

My specific usage

For information, I am developing on my spare time a website for commons-based maps peer production: Lmap.org. I would like to embed the Geo-Location within the SVG code => The downloaded SVG maps will already contain all the Geo-Location data.

I think SVG GeoTagging could be interesting for maps and building representation, for instance:


Solution

  • The most advanced reference I found is the Dublin Core DCMI-box.

    2000 version

    The 2000's version was something such :

    <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 cite the DClite4G scheme :

     <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 a list of RDF

    2006 version

    The 2006 Dublin Core DCMI-box values used with their generator (click on DCMI-box) suggest the XML syntax as follow :

    <?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>
    

    enter image description here

    you can naturally change the units.