Feature format for reading and writing data in the GML format,
version 2.1.2.
new GML2(opt_options)
format/GML2.js, line 40
Name
Type
Description
options
Optional configuration object.
Name
Type
Default
Description
featureNS
Object.<string, string>
|
string
Feature
namespace. If not defined will be derived from GML. If multiple
feature types have been configured which come from different feature
namespaces, this will be an object with the keys being the prefixes used
in the entries of featureType array. The values of the object will be the
feature namespaces themselves. So for instance there might be a featureType
item topp:states in the featureType array and then there will be a key
topp in the featureNS object with value http://www.openplans.org/topp.
featureType
Array.<string>
|
string
Feature type(s) to parse.
If multiple feature types need to be configured
which come from different feature namespaces, featureNS will be an object
with the keys being the prefixes used in the entries of featureType array.
The values of the object will be the feature namespaces themselves.
So for instance there might be a featureType item topp:states and then
there will be a key named topp in the featureNS object with value
http://www.openplans.org/topp.
srsName
string
srsName to use when writing geometries.
surface
boolean
false
Write gml:Surface instead of gml:Polygon
elements. This also affects the elements in multi-part geometries.
curve
boolean
false
Write gml:Curve instead of gml:LineString
elements. This also affects the elements in multi-part geometries.
multiCurve
boolean
true
Write gml:MultiCurve instead of gml:MultiLineString.
Since the latter is deprecated in GML 3.
multiSurface
boolean
true
Write gml:multiSurface instead of
gml:MultiPolygon. Since the latter is deprecated in GML 3.
schemaLocation
string
Optional schemaLocation to use when
writing out the GML, this will override the default provided.