|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.extra.shapefile.SHPParser
public class SHPParser
Constructor Summary | |
---|---|
SHPParser()
SHPParser constuctor |
|
SHPParser(byte[] shpData)
SHP file parser constuctor |
|
SHPParser(java.io.File shpFile)
SHP file parser constuctor |
|
SHPParser(int shapeTypes,
BoundingBox bb,
Range zRange,
Range mRange,
java.util.List<Shape> shapes)
SHPParser constuctor |
|
SHPParser(SHPParser other)
Copy constuctor |
Method Summary | |
---|---|
void |
addShape(Shape sh)
Add a shape to the end of the list |
void |
clearFileLength()
|
BoundingBox |
getBoundingBox()
|
int |
getFileCode()
|
int |
getFileLength(boolean isIndex)
|
int |
getFileLength16(boolean isIndex)
|
Range |
getFileMRange()
|
Range |
getFileZRange()
|
Shape |
getShapeAt(int ndx)
Return the Shape at the specified index |
int |
getShapeCount()
Return number of shapes |
java.util.List<Shape> |
getShapes()
Return list of shapes |
int |
getShapeTypes()
|
int |
getVersion()
|
boolean |
isEmpty()
Returns true if this instance does not contain any shapes |
static void |
main(java.lang.String[] argv)
|
java.lang.String |
toString()
|
void |
writeFile(Payload data,
Payload index)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SHPParser()
public SHPParser(int shapeTypes, BoundingBox bb, Range zRange, Range mRange, java.util.List<Shape> shapes)
public SHPParser(SHPParser other)
other
- The other instance to copypublic SHPParser(byte[] shpData) throws java.io.IOException
shpData
- The byte array containing the dbf data to parse
java.io.IOException
public SHPParser(java.io.File shpFile) throws java.io.IOException
shpFile
- The file containing the dbf data to parse
java.io.IOException
Method Detail |
---|
public int getFileCode()
public void clearFileLength()
public int getFileLength16(boolean isIndex)
public int getFileLength(boolean isIndex)
public int getVersion()
public int getShapeTypes()
public BoundingBox getBoundingBox()
public Range getFileZRange()
public Range getFileMRange()
public int getShapeCount()
public boolean isEmpty()
public java.util.List<Shape> getShapes()
public Shape getShapeAt(int ndx)
public void addShape(Shape sh)
public void writeFile(Payload data, Payload index)
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |