org.deegree.io.shpapi
Class SHPPolygon
java.lang.Object
  
org.deegree.io.shpapi.SHPGeometry
      
org.deegree.io.shpapi.SHPPolygon
- Direct Known Subclasses: 
 - SHPPolygon3D
 
public class SHPPolygon
- extends SHPGeometry
 
Class representig a two dimensional ESRI Polygon
- Version:
 
  - 16.08.2000
 
- Author:
 
  - Andreas Poth
 
 
 
| 
Constructor Summary | 
SHPPolygon(byte[] recBuf)
 
          constructor: recieves a stream 
  | 
SHPPolygon(Surface[] surface)
 
          constructor: recieves an array of arrays of Points 
  | 
 
| 
Method Summary | 
 int | 
size()
 
          returns the polygon shape size in bytes
  | 
 String | 
toString()
 
            | 
 byte[] | 
writeSHPPolygon(byte[] bytearray,
                               int start)
 
          method: writeSHPPolygon(byte[] bytearray, int start)
  | 
 
 
 
numRings
public int numRings
numPoints
public int numPoints
rings
public SHPPolyLine rings
SHPPolygon
public SHPPolygon(byte[] recBuf)
- constructor: recieves a stream 
- Parameters:
 recBuf - 
 
SHPPolygon
public SHPPolygon(Surface[] surface)
- constructor: recieves an array of arrays of Points 
- Parameters:
 surface - 
 
writeSHPPolygon
public byte[] writeSHPPolygon(byte[] bytearray,
                              int start)
- method: writeSHPPolygon(byte[] bytearray, int start)
- Parameters:
 bytearray - start - 
- Returns:
 - the byte array again
 
 
 
size
public int size()
- returns the polygon shape size in bytes
- Returns:
 - the polygon shape size in bytes
 
 
 
toString
public String toString()
- Overrides:
 toString in class Object
 
 
                an open source project founded by lat/lon, Bonn, Germany.
                    For more information visit: http://www.deegree.org