GmlReadOptions interface

Options that customize how GML files are read and parsed.

Extends

Properties

isAxisOrderLonLat

If the reading a GML file, this specifies if the coordinate information is ordered 'longitude, latitude'. If set to false, coordinates will be parsed as "latitude, longitude". If unspecified, will try and determine based on hints within the GML, with a preference for 'latitude, longitude' ordering.

propertyTypes

If the reading a GML file, this contains a key-value pair list of property names to types which is used for deserializing custom properties. If a property name is not in the list, the property value will be parsed as a string.

Inherited Properties

maxFeatures

Specifies the maximum number of features to read from the data set. If not specified, will read all features.

parseStyles

Specifies if style information should be parsed from the XML file and included as properties of the features. Default: true

proxyService

A URL to a proxy service that can have a URL to an external file appended it. This will be needed to access files that are hosted on non-CORs enabled endpoints.

Property Details

isAxisOrderLonLat

If the reading a GML file, this specifies if the coordinate information is ordered 'longitude, latitude'. If set to false, coordinates will be parsed as "latitude, longitude". If unspecified, will try and determine based on hints within the GML, with a preference for 'latitude, longitude' ordering.

isAxisOrderLonLat?: boolean

Property Value

boolean

propertyTypes

If the reading a GML file, this contains a key-value pair list of property names to types which is used for deserializing custom properties. If a property name is not in the list, the property value will be parsed as a string.

propertyTypes?: Record<string, string | "string" | "number" | "boolean" | "date">

Property Value

Record<string, string | "string" | "number" | "boolean" | "date">

Inherited Property Details

maxFeatures

Specifies the maximum number of features to read from the data set. If not specified, will read all features.

maxFeatures?: number

Property Value

number

Inherited From BaseSpatialDataReadOptions.maxFeatures

parseStyles

Specifies if style information should be parsed from the XML file and included as properties of the features. Default: true

parseStyles?: boolean

Property Value

boolean

Inherited From BaseSpatialXmlReadOptions.parseStyles

proxyService

A URL to a proxy service that can have a URL to an external file appended it. This will be needed to access files that are hosted on non-CORs enabled endpoints.

proxyService?: string

Property Value

string

Inherited From BaseSpatialDataReadOptions.proxyService