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 vstring | Array.<string> decimalnumber Number of decimals
Returns:
v
- Type
- ol.coordinate | Array.<ol.coordinate>
-
decodeNumber(s, decimals)
-
Decode a number
Parameters:
Name Type Description sstring decimalsnumber Number of decimals
Returns:
- Type
- number
-
encodeCoordinates(v, decimal)
-
Encode coordinates
Parameters:
Name Type Description vol.coordinate | Array.<ol.coordinate> decimalnumber Returns:
- Type
- string | Array.<string>
-
encodeNumber(number, decimals)
-
Encode a number
Parameters:
Name Type Description numbernumber Number to encode
decimalsnumber 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 layoutstring the geometry layout (XY or XYZ or XYZM)
-
writeFeatureObject(feature, options)
-
Encode a set of features as a GeoJSONX object.
Parameters:
Name Type Description featureol.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 featuresArray.<ol.Feature> Features.
options* Write options.
Returns:
GeoJSONX Object.
- Type
- *
-
writeGeometryObject(geometry, options)
-
Encode a geometry as a GeoJSONX object.
Parameters:
Name Type Description geometryol.geom.Geometry Geometry.
options* Write options.
Returns:
Object.
- Type
- *