public class ShpPolygon extends java.lang.Object implements ShpShape
By our definitions, a shapefile Polygon entity is really a list of polygon objects. Each of these is stored as a series of connected vertices.
Copyright 2007 Partner Software, Inc.
| Constructor and Description |
|---|
ShpPolygon(ShapeByteReader reader)
Creates a new ShpPolygon object from the given input.
|
| Modifier and Type | Method and Description |
|---|---|
XyBounds |
getBounds()
Return the bounds.
|
int |
getNumParts()
The number of polyline parts.
|
int |
getNumPoints()
The total number of points of all parts.
|
java.util.List<java.util.List<ShpPoint>> |
getPoints()
Returns the points as a list of lists.
|
ShapeType |
getType()
Returns the type for this shape.
|
java.lang.String |
toString() |
java.util.List<XyPolygon> |
toXyPolygons()
Converts the ShpPolyLine to a list of XyPolygon objects, one for each part (ring).
|
java.util.List<XyPolyline> |
toXyPolylines()
Converts the ShpPolyLine to a list of XyPolyline objects, one for each part (ring).
|
void |
writeBytes(ShapeByteWriter writer)
Writes this shape, in binary format, to the given output.
|
public ShpPolygon(ShapeByteReader reader)
public java.util.List<XyPolyline> toXyPolylines()
public java.util.List<XyPolygon> toXyPolygons()
public ShapeType getType()
ShpShapepublic void writeBytes(ShapeByteWriter writer)
ShpShapewriteBytes in interface ShpShapepublic java.lang.String toString()
toString in class java.lang.Objectpublic int getNumParts()
public int getNumPoints()
public java.util.List<java.util.List<ShpPoint>> getPoints()
public XyBounds getBounds()