Class: Base

.Format.GML. Base

GMLv2与GMLv3的基类 Superclass for GML parsers.Inherits from:GeoGlobe.Format.XML

new Base()

Source:
View2D/Format/GML/Base.js

Members


extractAttributes :Boolean

从GML中提取属性。 默认值是true。
Type:
  • Boolean
Source:
View2D/Format/GML/Base.js

featureNS :String

功能命名空间。 必须在构造选项中进行设置。
Type:
  • String
Source:
View2D/Format/GML/Base.js

geometryName :String

几何元素的名称。 默认为“几何”。 如果为null,则在解析第一个几何图形时将设置为read。
Type:
  • String
Source:
View2D/Format/GML/Base.js

geometryTypes :Object

Maps GeoGlobe geometry class names to GML element names. Use setGeometry Types before accessing this property.
Type:
  • Object
Source:
View2D/Format/GML/Base.js

srsName :String

空间参考系统的URI。 这对于单个部分几何体是可选的,对于集合体和多重体是必需的。 如果设置,则会为所有几何图形编写srsName属性. Default为空。
Type:
  • String
Source:
View2D/Format/GML/Base.js

xy :Boolean

GML坐标的顺序true:(x,y)或false:(y,x)不建议更改,应该实例化新的Format。
Type:
  • Boolean
Source:
View2D/Format/GML/Base.js

Methods


initialize(选项, featuretype, featureNS, geometryName)

这个类的实例不是直接创建的。 改为使用GeoGlobe.Format.GML.v2或GeoGlobe.Format.GML.v3构造函数。
Parameters:
Name Type Description
选项 Object 一个可选对象,其属性将在此实例上设置。 有效的选项属性:
featuretype Array(String) | String 本地(无前缀)功能typeName(s)(写入所需)。
featureNS String 功能名称空间(写入所需)。
geometryName String 几何元素名称(写入所需)。
Source:
View2D/Format/GML/Base.js