我从我的 SQL 查询(名称、描述、纬度、经度)中获取我的信息,但我在将其转换为 GeoRSS 的正确格式时遇到问题,以便我的虚拟地球地图可以使用它。FOR XML AUTO 并没有给我我想要的东西,而且我似乎找不到任何关于如何将 SQL 查询的输出提取到 GeoRSS 的示例。
这是我正在寻找的 GeoRSS 格式的示例:
<channel>
<title>Reported Road Hazards</title>
<link/>
<description>Road hazards reported to the city</description>
<item>
<title>Traffic Light</title>
<description>Traffic light on north west corner out</description>
<geo:lat>43.64887</geo:lat>
<geo:long>-79.385362</geo:long>
</item>
</channel>