Package ddf.geo.formatter
Class Point
java.lang.Object
ddf.geo.formatter.CompositeGeometry
ddf.geo.formatter.Point
- Direct Known Subclasses:
MultiPoint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.locationtech.jts.geom.Geometrystatic final StringFields inherited from class ddf.geo.formatter.CompositeGeometry
COORDINATES_KEY, GEOMETRIES_KEY, GEOMETRY_FACTORY, GEOMETRY_KEY, PROPERTIES_KEY, TYPE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.abdera.ext.geo.Coordinateconvert(org.locationtech.jts.geom.Coordinate jtsCoordinate) protected Maporg.locationtech.jts.geom.Geometryprotected booleanisNotType(org.locationtech.jts.geom.Geometry geo) static CompositeGeometrytoCompositeGeometry(List coordinates) List<org.apache.abdera.ext.geo.Position>Creates a Map that mimics the GeoJSON structure.toWkt()Methods inherited from class ddf.geo.formatter.CompositeGeometry
getCompositeGeometry, getCompositeGeometry, getCoordinate, getCoordinates
-
Field Details
-
TYPE
- See Also:
-
geometry
protected org.locationtech.jts.geom.Geometry geometry
-
-
Constructor Details
-
Point
public Point(org.locationtech.jts.geom.Geometry geometry)
-
-
Method Details
-
toCompositeGeometry
- Parameters:
coordinates- [x,y] coordinate list
-
isNotType
protected boolean isNotType(org.locationtech.jts.geom.Geometry geo) -
toJsonMap
Description copied from class:CompositeGeometryCreates a Map that mimics the GeoJSON structure.- Specified by:
toJsonMapin classCompositeGeometry
-
createMap
-
toWkt
- Specified by:
toWktin classCompositeGeometry- Returns:
- well-known text of underlying equivalent Geometric object
-
getGeometry
public org.locationtech.jts.geom.Geometry getGeometry()- Specified by:
getGeometryin classCompositeGeometry- Returns:
- equivalent geometric object
-
toGeoRssPositions
- Specified by:
toGeoRssPositionsin classCompositeGeometry
-
convert
protected org.apache.abdera.ext.geo.Coordinate convert(org.locationtech.jts.geom.Coordinate jtsCoordinate)
-