public class SHPFileWrite
extends java.lang.Object
| Constructor and Description |
|---|
SHPFileWrite(java.nio.channels.FileChannel shpChannel,
java.nio.channels.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 |
size() |
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(java.nio.channels.FileChannel shpChannel,
java.nio.channels.FileChannel shxChannel)
public void close()
throws WriteException
WriteExceptionpublic void writeHeaders(Envelope bounds, int type, int numberOfGeometries, int fileLength) throws WriteException
WriteExceptionpublic int writeIGeometry(Geometry g) throws WriteException
WriteExceptionpublic int writeGeometry(Geometry g) throws WriteException
g - WriteExceptionpublic int getShapeType(int geometryType,
int geometrySubType)
geometryType - public int size()
throws java.io.IOException
java.io.IOException