|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gicentre.io.ShapefileWriter
public class ShapefileWriter
Writes out a treemap as a collection of ESRI shapefiles. A shapefile consists of 3 separate
files - 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 Summary | |
---|---|
ShapefileWriter()
There should be no need to call the constructor explicitly since all methods are static. |
Method Summary | |
---|---|
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShapefileWriter()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |