org.opengts.extra.shapefile
Class SHPParser

java.lang.Object
  extended by org.opengts.extra.shapefile.SHPParser

public class SHPParser
extends java.lang.Object


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

SHPParser

public SHPParser()
SHPParser constuctor


SHPParser

public SHPParser(int shapeTypes,
                 BoundingBox bb,
                 Range zRange,
                 Range mRange,
                 java.util.List<Shape> shapes)
SHPParser constuctor


SHPParser

public SHPParser(SHPParser other)
Copy constuctor

Parameters:
other - The other instance to copy

SHPParser

public SHPParser(byte[] shpData)
          throws java.io.IOException
SHP file parser constuctor

Parameters:
shpData - The byte array containing the dbf data to parse
Throws:
java.io.IOException

SHPParser

public SHPParser(java.io.File shpFile)
          throws java.io.IOException
SHP file parser constuctor

Parameters:
shpFile - The file containing the dbf data to parse
Throws:
java.io.IOException
Method Detail

getFileCode

public int getFileCode()

clearFileLength

public void clearFileLength()

getFileLength16

public int getFileLength16(boolean isIndex)

getFileLength

public int getFileLength(boolean isIndex)

getVersion

public int getVersion()

getShapeTypes

public int getShapeTypes()

getBoundingBox

public BoundingBox getBoundingBox()

getFileZRange

public Range getFileZRange()

getFileMRange

public Range getFileMRange()

getShapeCount

public int getShapeCount()
Return number of shapes


isEmpty

public boolean isEmpty()
Returns true if this instance does not contain any shapes

Returns:
True if this instance does not contain any shapes

getShapes

public java.util.List<Shape> getShapes()
Return list of shapes


getShapeAt

public Shape getShapeAt(int ndx)
Return the Shape at the specified index


addShape

public void addShape(Shape sh)
Add a shape to the end of the list


writeFile

public void writeFile(Payload data,
                      Payload index)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] argv)