Constructor
new GeoJSONGeometryLineString(coordinates, type, bbox)
Constructs a GeoJSON geometry for a LineString. Applications typically do not call this constructor.
It is called by GeoJSON as GeoJSON geometries are read.
Parameters:
Name | Type | Description |
---|---|---|
coordinates |
Array.<Number> | The array containing LineString coordinates. |
type |
String | A string containing type of geometry. |
bbox |
Object | An object containing GeoJSON bbox information. |
Throws:
-
If the specified coordinates or type are null or undefined or if the coordinates parameter is not an array of two or more positions.
- Type
- ArgumentError
Extends
Members
(readonly) bbox :Object
The GeoJSON bbox object as specified to this GeoJSONGeometry's constructor.
Type:
- Object
- Inherited From:
- Source:
(readonly) coordinates :Array.<Number>
The GeoJSON geometry coordinates as specified to this GeoJSONGeometry's constructor.
Type:
- Array.<Number>
- Inherited From:
- Source:
(readonly) type :String
The GeoJSON geometry type as specified to this GeoJSONGeometry's constructor.
Type:
- String
- Inherited From:
- Source:
Methods
isLineStringType() → {Boolean}
Indicates whether this GeoJSON geometry is
[GeoJSONConstants.TYPE_LINE_STRING]
- Inherited From:
- Source:
Returns:
True if the geometry is a LineString type.
- Type
- Boolean
isMultiLineStringType() → {Boolean}
Indicates whether this GeoJSON geometry is
[GeoJSONConstants.TYPE_MULTI_LINE_STRING]
- Inherited From:
- Source:
Returns:
True if the geometry is a MultiLineString type.
- Type
- Boolean
isMultiPointType() → {Boolean}
Indicates whether this GeoJSON geometry is
[GeoJSONConstants.TYPE_MULTI_POINT]
- Inherited From:
- Source:
Returns:
True if the geometry is a MultiPoint type.
- Type
- Boolean
isMultiPolygonType() → {Boolean}
Indicates whether this GeoJSON geometry is
[GeoJSONConstants.TYPE_MULTI_POLYGON]
- Inherited From:
- Source:
Returns:
True if the geometry is a MultiPolygon type.
- Type
- Boolean
isPointType() → {Boolean}
Indicates whether this GeoJSON geometry is
[GeoJSONConstants.TYPE_POINT]
- Inherited From:
- Source:
Returns:
True if the geometry is a Point type.
- Type
- Boolean
isPolygonType() → {Boolean}
Indicates whether this GeoJSON geometry is
[GeoJSONConstants.TYPE_POLYGON]
- Inherited From:
- Source:
Returns:
True if the geometry is a Polygon type.
- Type
- Boolean