public class GeoJsonPoint extends Point implements GeoJson<List<Double>>
http://geojson.org/geojson-spec.html#point,
Serialized Form| Constructor and Description |
|---|
GeoJsonPoint(double x,
double y)
Creates
GeoJsonPoint for given coordinates. |
GeoJsonPoint(Point point)
Creates
GeoJsonPoint for given Point. |
| Modifier and Type | Method and Description |
|---|---|
List<Double> |
getCoordinates()
The value of the coordinates member is always an
Iterable. |
String |
getType()
String value representing the type of the
GeoJson object. |
public GeoJsonPoint(double x,
double y)
GeoJsonPoint for given coordinates.x - y - public GeoJsonPoint(Point point)
GeoJsonPoint for given Point.point - must not be null.public String getType()
GeoJsonGeoJson object.public List<Double> getCoordinates()
GeoJsonIterable. The structure for the elements within is
determined by GeoJson.getType() of geometry.getCoordinates in interface GeoJson<List<Double>>http://geojson.org/geojson-spec.html#geometry-objectsCopyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.