public class SHPFileWrite extends Object
Constructor and Description |
---|
SHPFileWrite(FileChannel shpChannel,
FileChannel shxChannel) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the underlying Channels.
|
int |
getShapeType(int geometryType,
int geometrySubType)
Returns a shapeType compatible with shapeFile constants from a gvSIG's
IGeometry type
|
int |
writeGeometry(Geometry g)
Writes a single Geometry.
|
void |
writeHeaders(Envelope bounds,
int type,
int numberOfGeometries,
int fileLength)
Writes shape header (100 bytes)
|
int |
writeIGeometry(Geometry g) |
public SHPFileWrite(FileChannel shpChannel, FileChannel shxChannel)
public void close() throws WriteException
WriteException
public void writeHeaders(Envelope bounds, int type, int numberOfGeometries, int fileLength) throws WriteException
WriteException
public int writeIGeometry(Geometry g) throws WriteException
WriteException
public int writeGeometry(Geometry g) throws WriteException
g
- WriteException
public int getShapeType(int geometryType, int geometrySubType)
geometryType
-