GmlWriteOptions interface

Options that are used to customize how to write GML.

Extends

Properties

customNamespace

Namespace used for writing custom feature data in GML.

format

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

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

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

srsName

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

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

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"

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

indentChars

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

indentChars?: string

Property Value

string

newLineChars

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

newLineChars?: string

Property Value

string

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

roundPositions

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

roundPositions?: 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

writeIds

Specifies if ID values should be written. Default: false

writeIds?: boolean

Property Value

boolean