Package dev.avelar.mapnik
Class Geometry.Polygon
java.lang.Object
dev.avelar.mapnik.Geometry
dev.avelar.mapnik.Geometry.Polygon
- Enclosing class:
- Geometry
An area: an exterior ring and any number of holes.
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.avelar.mapnik.Geometry
Geometry.Collection, Geometry.LineString, Geometry.MultiLineString, Geometry.MultiPoint, Geometry.MultiPolygon, Geometry.Nearest, Geometry.Point, Geometry.Polygon -
Method Summary
Modifier and TypeMethodDescriptiondouble[]exterior()The exterior ring as x0, y0, x1, y1, ...List<double[]>holes()The holes, each as x0, y0, x1, y1, ...booleanisEmpty()True if it has no coordinates, for example an empty collection.kind()What kind of geometry this is.List<double[]>rings()The exterior ring followed by the holes.Methods inherited from class dev.avelar.mapnik.Geometry
centroid, closestPoint, collection, corrected, empty, envelope, equals, fromGeoJson, fromWkb, fromWkt, hashCode, interiorPoint, isSimple, isValid, lineString, lineString, multiLineString, multiPoint, multiPolygon, offset, point, polygon, rectangle, reproject, simplify, toGeoJson, toString, toWkb, toWkt, validityReason
-
Method Details
-
exterior
public double[] exterior()The exterior ring as x0, y0, x1, y1, ... A copy. -
holes
The holes, each as x0, y0, x1, y1, ... Copies. -
rings
The exterior ring followed by the holes. Copies. -
kind
Description copied from class:GeometryWhat kind of geometry this is. -
isEmpty
public boolean isEmpty()Description copied from class:GeometryTrue if it has no coordinates, for example an empty collection.
-