GmlWriteOptions interface

Options that are used to customize how to write GML.

Extends

Properties

customNamespace

Namespace used for writing custom feature data in GML.

includeNamespace

A boolean indicating if the GML namespace should be included as part of the generated XML. If set to false, the GML tags will be prefixed with gml: with the assumption that the namespace is specified in the XML document. Default: true

includeSrsName

Specifies if the srsName value should be written. Default: false

srsName

The SRS name to add to the geometries. Default: "urn:ogc:def:crs:EPSG::4326"

Inherited Properties

format

The spatial data format to write the shapes to. Default: "GeoJSON"

indentChars

The characters to use to create an indent in the XML data. Default: "\t"

newLineChars

The characters to use to create a new line in the XML data. Default: "\r\n"

prettyPrint

A boolean indicating if the generated XML should be use new lines and indents to make the generated nicely formatted. Default: true

roundPositions

A boolean indicating if Position and BoundingBox values should be rounded off to 6 decimals. Default: false

writeIds

Specifies if ID values should be written. Default: false

Property Details

customNamespace

Namespace used for writing custom feature data in GML.

customNamespace?: CustomGmlNamespace

Property Value

includeNamespace

A boolean indicating if the GML namespace should be included as part of the generated XML. If set to false, the GML tags will be prefixed with gml: with the assumption that the namespace is specified in the XML document. Default: true

includeNamespace?: boolean

Property Value

boolean

includeSrsName

Specifies if the srsName value should be written. Default: false

includeSrsName?: boolean

Property Value

boolean

srsName

The SRS name to add to the geometries. Default: "urn:ogc:def:crs:EPSG::4326"

srsName?: string

Property Value

string

Inherited Property Details

format

The spatial data format to write the shapes to. Default: "GeoJSON"

format?: "KML" | "GPX" | "GeoRSS" | "GML" | "GeoJSON" | "CSV"

Property Value

"KML" | "GPX" | "GeoRSS" | "GML" | "GeoJSON" | "CSV"

Inherited From SpatialDataWriteOptions.format

indentChars

The characters to use to create an indent in the XML data. Default: "\t"

indentChars?: string

Property Value

string

Inherited From SpatialXmlWriteOptions.indentChars

newLineChars

The characters to use to create a new line in the XML data. Default: "\r\n"

newLineChars?: string

Property Value

string

Inherited From SpatialXmlWriteOptions.newLineChars

prettyPrint

A boolean indicating if the generated XML should be use new lines and indents to make the generated nicely formatted. Default: true

prettyPrint?: boolean

Property Value

boolean

Inherited From SpatialXmlWriteOptions.prettyPrint

roundPositions

A boolean indicating if Position and BoundingBox values should be rounded off to 6 decimals. Default: false

roundPositions?: boolean

Property Value

boolean

Inherited From SpatialXmlWriteOptions.roundPositions

writeIds

Specifies if ID values should be written. Default: false

writeIds?: boolean

Property Value

boolean

Inherited From SpatialXmlWriteOptions.writeIds