public class ShapefileWriter
extends java.lang.Object
name.shp
containing the geometry; name.shx
containing the file offsets for the components that make up the geometry; and
name.dbf
containing the attributes.Constructor and Description |
---|
ShapefileWriter()
There should be no need to call the constructor explicitly since
all methods are static.
|
Modifier and Type | Method and Description |
---|---|
protected static boolean |
writeDoubleLittleEndian(double value,
java.io.OutputStream os)
Writes a little-endian 8-byte double to the given output stream.
|
protected static boolean |
writeIntLittleEndian(int value,
java.io.OutputStream os)
Writes a 32 bit unsigned little-endian ('Intel') word of data to the
given output stream.
|
static boolean |
writeNodes(TreeMapNode node,
java.lang.String fileName)
Writes a shapefile based on the supplied treemap node (and all of its decendents).
|
public ShapefileWriter()
public static boolean writeNodes(TreeMapNode node, java.lang.String fileName)
.shp
, .shx
and .dbf
.node
- Treemap node to write.fileName
- Name of core of the three files to create.protected static boolean writeIntLittleEndian(int value, java.io.OutputStream os)
value
- Value to write to output stream.os
- Output stream to process.protected static boolean writeDoubleLittleEndian(double value, java.io.OutputStream os)
value
- Value to write to output stream.os
- Output stream.