Class Polygon

Direct Known Subclasses:
MultiPolygon

public class Polygon extends MultiPoint
  • Field Details

  • Constructor Details

    • Polygon

      public Polygon(org.locationtech.jts.geom.Geometry geometry)
  • Method Details

    • toCompositeGeometry

      public static CompositeGeometry toCompositeGeometry(List coordinates)
      Parameters:
      coordinates - a List of coordinates formatted in the GeoJSON Array equivalent
      Returns:
    • buildPolygon

      public static org.locationtech.jts.geom.Polygon buildPolygon(List coordinates)
    • isNotType

      protected boolean isNotType(org.locationtech.jts.geom.Geometry geo)
      Overrides:
      isNotType in class MultiPoint
    • toJsonMap

      public Map toJsonMap()
      Description copied from class: CompositeGeometry
      Creates a Map that mimics the GeoJSON structure.
      Overrides:
      toJsonMap in class MultiPoint
    • buildJsonPolygon

      protected List buildJsonPolygon(org.locationtech.jts.geom.Polygon polygon)
    • toGeoRssPositions

      public List<org.apache.abdera.ext.geo.Position> toGeoRssPositions()
      Overrides:
      toGeoRssPositions in class MultiPoint
    • getPolygonCoordinates

      protected org.apache.abdera.ext.geo.Coordinates getPolygonCoordinates(org.locationtech.jts.geom.Polygon polygon)