|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.formats.shapefile.ShpPolygon
public class ShpPolygon
ESRI's multiple part (ring) polygon in (x, y) space.
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 Summary | |
|---|---|
ShpPolygon(ShapeByteReader reader)
Creates a new ShpPolygon object from the given input. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ShpPolygon(ShapeByteReader reader)
| Method Detail |
|---|
public java.util.List<XyPolyline> toXyPolylines()
public java.util.List<XyPolygon> toXyPolygons()
public ShapeType getType()
ShpShape
getType in interface ShpShapepublic void writeBytes(ShapeByteWriter writer)
ShpShape
writeBytes 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||