Class GeoJsonPolygon

java.lang.Object
org.springframework.data.geo.Polygon
org.springframework.data.mongodb.core.geo.GeoJsonPolygon
All Implemented Interfaces:
Serializable, Iterable<Point>, Shape, GeoJson<List<GeoJsonLineString>>

public class GeoJsonPolygon extends Polygon implements GeoJson<List<GeoJsonLineString>>
GeoJson representation of Polygon. Unlike Polygon the GeoJsonPolygon requires a closed border. Which means that the first and last Point have to have same coordinate pairs.
Since:
1.7
Author:
Christoph Strobl, Mark Paluch
See Also: