@Test public void testPolygonHandler() { Coordinate[] c = new Coordinate[3]; c[0] = new Coordinate(0, 0, 0); c[1] = new Coordinate(1, 1, Double.NaN); c[2] = new Coordinate(1, 2, 3); PolygonHandler handler = new PolygonHandler(new GeometryFactory()); assertTrue(handler.getShapeType() == ShapeType.POLYGON); for (int i = 0, ii = c.length; i < ii; i++) { assertTrue(handler.pointInList(c[i], c)); } }
public PolygonHandler(GeometryFactory gf) { shapeType = ShapeType.POLYGON; this.geometryFactory = gf; }
PolygonHandler implements ShapeHandler { public PolygonHandler(GeometryFactory gf) { shapeType = ShapeType.POLYGON; this.geometryFactory = gf; } }
PolygonHandler implements ShapeHandler { public PolygonHandler(GeometryFactory gf) { shapeType = ShapeType.POLYGON; this.geometryFactory = gf; } PolygonHandler(GeometryFactory gf);  PolygonHandler(ShapeType type, GeometryFactory gf); }
PolygonHandler implements ShapeHandler { public PolygonHandler(GeometryFactory gf) { shapeType = ShapeType.POLYGON; this.geometryFactory = gf; } PolygonHandler(GeometryFactory gf);  PolygonHandler(ShapeType type, GeometryFactory gf); ShapeType getShapeType(); int getLength(Object geometry); Object read(ByteBuffer buffer, ShapeType type, boolean flatFeature); void write(ByteBuffer buffer, Object geometry); }
PolygonHandler implements ShapeHandler { public PolygonHandler(GeometryFactory gf) { shapeType = ShapeType.POLYGON; this.geometryFactory = gf; } PolygonHandler(GeometryFactory gf);  PolygonHandler(ShapeType type, GeometryFactory gf); ShapeType getShapeType(); int getLength(Object geometry); Object read(ByteBuffer buffer, ShapeType type, boolean flatFeature); void write(ByteBuffer buffer, Object geometry);  }