【发布时间】:2013-08-23 09:59:21
【问题描述】:
为了更易读,我重写了这个问题:
我看到 GML 格式只是比 KML 更“进化”了一点。我对吗?哪种格式被认为更标准、更受支持且更便于投资?
-
我尝试了此处的示例 (http://openlayers.org/dev/examples/vector-formats.html) 尝试加载定义如下的 GML v3 圆:
<gml:featureMember xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <feature:feature xmlns:feature="http://example.com/feature"> <feature:geometry> <gml:CircleByCenterPoint> <gml:pos>11.979491114616 43.847170472145</gml:pos> <gml:radius uom="km">25</gml:radius> </gml:CircleByCenterPoint> </feature:geometry> </feature:feature> </gml:featureMember>
示例程序无法加载它。一般而言,OpenLayers 库似乎有一个限制,即无法正确加载某种 GML 文件,还是什么?我是否指定了无效的 GML xml 字符串?您知道在 OpenLayers 中支持 GML 格式的某些高级功能的一些限制吗?
OpenLayers 上的 GML v3 类型只能加载通过 read() 方法传递 xml 字符串的 GML v3 文件,而不是使用 HTTPProtocolOptions 指定要从服务器加载的文件。为什么这个?有没有我不明白的方法?
您有一些使用相对坐标的有效 GML 文件示例吗?
谢谢。
【问题讨论】:
标签: openlayers gml gwt-openlayers