public final class GeoLineString extends GeoObject
Constructor and Description |
---|
GeoLineString(List<GeoPosition> positions)
Constructs a geometric line.
|
GeoLineString(List<GeoPosition> positions,
GeoBoundingBox boundingBox,
Map<String,Object> customProperties)
Constructs a geometric line.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<GeoPosition> |
getCoordinates()
Unmodifiable representation of the
geometric positions representing this line. |
GeoObjectType |
getType()
Gets the GeoJSON type for this object.
|
int |
hashCode() |
getBoundingBox, getCustomProperties
public GeoLineString(List<GeoPosition> positions)
positions
- Geometric positions that define the line.NullPointerException
- If positions
is null
.public GeoLineString(List<GeoPosition> positions, GeoBoundingBox boundingBox, Map<String,Object> customProperties)
positions
- Geometric positions that define the line.boundingBox
- Bounding box for the line.customProperties
- Additional properties of the geometric line.NullPointerException
- If positions
is null
.public List<GeoPosition> getCoordinates()
geometric positions
representing this line.geometric positions
representing this line.public GeoObjectType getType()
GeoObject
Copyright © 2021 Microsoft Corporation. All rights reserved.