new GeoJSONX(options)
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
* | options. Properties
|
Extends
- ol.format.GeoJSON
Members
-
_radix
-
Radix
-
_size
-
Radix size
-
_toType
-
GeoSJONX types
-
_type
-
GeoSJON types
Methods
-
decodeCoordinates(v, decimal)
-
Decode coordinates
Parameters:
Name Type Description v
string | Array.<string> decimal
number Number of decimals
Returns:
v
- Type
- ol.coordinate | Array.<ol.coordinate>
-
decodeNumber(s, decimals)
-
Decode a number
Parameters:
Name Type Description s
string decimals
number Number of decimals
Returns:
- Type
- number
-
encodeCoordinates(v, decimal)
-
Encode coordinates
Parameters:
Name Type Description v
ol.coordinate | Array.<ol.coordinate> decimal
number Returns:
- Type
- string | Array.<string>
-
encodeNumber(number, decimals)
-
Encode a number
Parameters:
Name Type Description number
number Number to encode
decimals
number Number of decimals
string -
getLayout()
-
Get geometry layout
Returns:
layout
- Type
- string
-
readFeatureFromObject(object, options)
-
Decode GeoJSONX Feature object.
Parameters:
Name Type Description object
* GeoJSONX
options
* Read options.
Returns:
- Type
- ol.Feature
-
readFeaturesFromObject(object, options)
-
Decode a GeoJSONX object.
Parameters:
Name Type Description object
* GeoJSONX
options
* Read options.
Returns:
- Type
- Array.<ol.Feature>
-
setLayout(layout)
-
Set geometry layout
Parameters:
Name Type Description layout
string the geometry layout (XY or XYZ or XYZM)
-
writeFeatureObject(feature, options)
-
Encode a set of features as a GeoJSONX object.
Parameters:
Name Type Description feature
ol.Feature Feature
options
* Write options.
Returns:
GeoJSONX Object.
- Type
- *
-
writeFeaturesObject(features, options)
-
Encode an array of features as a GeoJSONX object.
Parameters:
Name Type Description features
Array.<ol.Feature> Features.
options
* Write options.
Returns:
GeoJSONX Object.
- Type
- *
-
writeGeometryObject(geometry, options)
-
Encode a geometry as a GeoJSONX object.
Parameters:
Name Type Description geometry
ol.geom.Geometry Geometry.
options
* Write options.
Returns:
Object.
- Type
- *