首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >有没有一种简单的方法来创建像Google GeoRSS这样的GeoRSS?

有没有一种简单的方法来创建像Google GeoRSS这样的GeoRSS?
EN

Stack Overflow用户
提问于 2010-07-14 17:07:56
回答 1查看 603关注 0票数 0

这是“我的地图”中的Google GeoRSS:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml">
<channel>
  <link>http://maps.google.com</link>
  <title>beijing 1</title>
  <description><![CDATA[dsad]]></description>
  <item>
    <guid isPermaLink="false">00048b5b66b7169311de4</guid>
    <pubDate>Wed, 14 Jul 2010 16:23:08 +0000</pubDate>

    <title>ww</title>
    <description><![CDATA[<div dir="ltr">dwqd</div>]]></description>
    <author>zjm1126</author>
    <georss:point>
      39.965015 116.362381
    </georss:point>
    <georss:elev>0.000000</georss:elev>
  </item>

  <item>
    <guid isPermaLink="false">00048b5b6a51f18e53ea5</guid>
    <pubDate>Wed, 14 Jul 2010 16:24:08 +0000</pubDate>
    <title>线条 1</title>
    <description><![CDATA[]]></description>
    <author>zjm1126</author>
    <gml:LineString>

      <gml:posList>
        39.992191 116.417938
        39.968254 116.466698
        39.939568 116.451591
        39.959045 116.411079
      </gml:posList>
    </gml:LineString>
  </item>
  <item>
    <guid isPermaLink="false">00048b5b6a520c46d52bd</guid>
    <pubDate>Wed, 14 Jul 2010 16:24:08 +0000</pubDate>

    <title>线条 2</title>
    <description><![CDATA[<br>]]></description>
    <author>zjm1126</author>
    <gml:LineString>
      <gml:posList>
        39.990536 116.437225
        39.963963 116.477051
        39.958702 116.437912
        39.959045 116.411079
      </gml:posList>
    </gml:LineString>

  </item>
  <item>
    <guid isPermaLink="false">00048b5b6a521daa5391e</guid>
    <pubDate>Wed, 14 Jul 2010 16:24:08 +0000</pubDate>
    <title>qqdw</title>
    <description><![CDATA[dsa]]></description>
    <author>zjm1126</author>

    <gml:LineString>
      <gml:posList>
        39.987720 116.519913
        39.947990 116.556641
        39.959045 116.523003
      </gml:posList>
    </gml:LineString>
  </item>
  <item>
    <guid isPermaLink="false">00048b5b6a52357ab39f0</guid>
    <pubDate>Wed, 14 Jul 2010 16:24:08 +0000</pubDate>

    <title>dwqd</title>
    <description><![CDATA[]]></description>
    <author>zjm1126</author>
    <gml:Polygon>
      <gml:exterior>
        <gml:LinearRing>
          <gml:posList>
            40.034264 116.451241
            40.015781 116.437225
            40.011654 116.409363
            40.033478 116.430305
            40.034264 116.451241
          </gml:posList>

        </gml:LinearRing>
      </gml:exterior>
    </gml:Polygon>
  </item>
</channel>
</rss>

两个问题:

  1. 有自由库来做这个吗?
  2. 谷歌使用RSS,但我认为Atom更好。如何创建GeoAtom?
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-07-14 18:29:32

GeoRSS可以与RSS或例句一起使用(参见GeoRSS维基百科页面中的例句)。

通常,有许多库可以使用RSS/Atom提要,这取决于您选择的语言。

处理GeoRSS的两个库是OGR/GDAL,如果使用Django,则是GeoDjango (它支持地理饲料 )。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3248625

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档