SVG中的地理标识位置(GeoLocation / GeoTag) [英] Geographical identification location (GeoLocation/GeoTag) in SVG

查看:170
本文介绍了SVG中的地理标识位置(GeoLocation / GeoTag)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的搜索结果




  • 地理标签可用于元数据格式,例如(自己的作品)(公共领域)
  • >我找到的最先进的参考资料是都柏林核心DCMI-box



    2000版



    2000的版本是这样的:

     < Box name =公爵铜矿> 
    < northlimit> -21.3< / northlimit>
    < eastlimit> 139.9< / eastlimit>
    <南极限> -21.4< /南极限>
    < westlimit> 139.8< / westlimit>
    <上限> 400< /上限>
    <下限> -100< /下限>
    < / Box>

    osgeo.org 援引DClite4G计划:

     < dct:spatial> 
    < Box投影=EPSG:4326name =Geographic>
    < northlimit> 34.353< / northlimit>
    < eastlimit> -96.223< / eastlimit>
    < southlimit> 28.229< / southlimit>
    < westlimit> -108.44< / westlimit>
    < / Box>
    < / dct:spatial>

    他们也有 RDF列表

    2006版



    2006年都柏林核心DCMI-box 值www.dublincoregenerator.com/generator.html#openDCMIBoxrel =nofollow noreferrer>它们的生成器(点击DCMI-box)提示XML语法如下:

     <?xml version =1.0encoding =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;
    投影= ESPXYZ;
    < / dcterms:spatial>

    < / metadata>



    I am wondering how to geotag SVG maps.

    My search results

    • Geotags are available in metadata formats such as Exif, XMP and GeoTIFF.
    • There is even a geotag for SMS (based on "geo:" URI)
    • But there is no geotags in SVG standard.
    • And not found Exif/XMB/... in SVG (ExifTool does not support SVG)
    • Not found standard to encode GeoLocation within filename
      (eg: RockwoodRural_geo_50.167958_-97.133185.svg)
    • As GeoLocation can be embedded in XHTML/HTML, and SVG is also XML-based, thus 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

    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:

    解决方案

    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>
    

    you can naturally change the units.

    这篇关于SVG中的地理标识位置(GeoLocation / GeoTag)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆