Interface GeoJson<T extends Iterable<?>>
- All Known Implementing Classes:
GeoJsonGeometryCollection
,GeoJsonLineString
,GeoJsonMultiLineString
,GeoJsonMultiPoint
,GeoJsonMultiPolygon
,GeoJsonPoint
,GeoJsonPolygon
public interface GeoJson<T extends Iterable<?>>
Interface definition for structures defined in GeoJSON
format. copied from Spring Data Mongodb
- Since:
- 1.7
- Author:
- Christoph Strobl
-
Method Summary
-
Method Details
-
getType
String getType()String value representing the type of theGeoJson
object.- Returns:
- will never be null.
- See Also:
-
getCoordinates
T getCoordinates()The value of the coordinates member is always anIterable
. The structure for the elements within is determined bygetType()
of geometry.- Returns:
- will never be null.
- See Also:
-
of
- Parameters:
json
- the JSON string to parse- Returns:
- the parsed
GeoJson
object - Throws:
ConversionException
- on parse erros
-
toJson
- Returns:
- a JSON representation of this object
-