com.partnersoft.v3x.graphics.codec.shapeFile
Class ShapeFile

java.lang.Object
  extended by com.partnersoft.v3x.graphics.codec.shapeFile.ShapeFile

public class ShapeFile
extends java.lang.Object

a shape file. this is actually 3 files. a *.shp which contains information about for each shape contained in the file... a *.shx file that is nothing more than an index into the *.shp file, and a *.dbf file for additional information note:: now with main gone, you can check for an example implementation in com.partnersoft.v3x.apps.Staker.interfaces.shapeFile.ShapeFileJobGenerator.java


Field Summary
static int POINT
           
static int POLY_LINE
           
 
Constructor Summary
ShapeFile()
           
ShapeFile(java.lang.String newFilename)
           
 
Method Summary
 void clear()
           
 void clearNumberOfRecords()
           
 void closeFiles()
           
 java.util.ArrayList getDBFFieldDescriptors()
           
 DoubleRectangle getExtents()
           
 java.lang.String getFilename()
           
 int getNumberOfRecords()
           
 java.util.HashMap getRecordHash()
           
 int getShapeType()
           
 void openFiles()
           
 void setDBFFieldDescriptors(java.util.ArrayList settings)
           
 void setDBFFieldDescriptors(java.util.Map settings)
           
 void setExtents(DoubleRectangle newRect)
           
 void setFilename(java.lang.String newFilename)
           
 void setNumberOfRecords(int newNumber)
           
 void setRecordHash(java.util.HashMap hashMap)
           
 void setShapeType(int newType)
           
 void writeHeaders()
          must have DoubleRectangle - extents String - filename int - numberOfRecords static final - shapeType
 void writeRecord(ShapeFileRecord shapie)
           
 void writeRecord(ShapeFileSketchRecord shapie)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POINT

public static final int POINT
See Also:
Constant Field Values

POLY_LINE

public static final int POLY_LINE
See Also:
Constant Field Values
Constructor Detail

ShapeFile

public ShapeFile()

ShapeFile

public ShapeFile(java.lang.String newFilename)
Method Detail

writeHeaders

public void writeHeaders()
                  throws java.io.IOException
must have DoubleRectangle - extents String - filename int - numberOfRecords static final - shapeType

Throws:
java.io.IOException

writeRecord

public void writeRecord(ShapeFileSketchRecord shapie)
                 throws java.io.IOException
Throws:
java.io.IOException

writeRecord

public void writeRecord(ShapeFileRecord shapie)
                 throws java.io.IOException
Throws:
java.io.IOException

clear

public void clear()

openFiles

public void openFiles()

closeFiles

public void closeFiles()

setDBFFieldDescriptors

public void setDBFFieldDescriptors(java.util.Map settings)

setDBFFieldDescriptors

public void setDBFFieldDescriptors(java.util.ArrayList settings)

setExtents

public void setExtents(DoubleRectangle newRect)

getExtents

public DoubleRectangle getExtents()

clearNumberOfRecords

public void clearNumberOfRecords()

setNumberOfRecords

public void setNumberOfRecords(int newNumber)

getNumberOfRecords

public int getNumberOfRecords()

setShapeType

public void setShapeType(int newType)

getShapeType

public int getShapeType()

setFilename

public void setFilename(java.lang.String newFilename)

getFilename

public java.lang.String getFilename()

setRecordHash

public void setRecordHash(java.util.HashMap hashMap)

getRecordHash

public java.util.HashMap getRecordHash()

getDBFFieldDescriptors

public java.util.ArrayList getDBFFieldDescriptors()