Package hec.map.aishape
Class AiShapeWriter
java.lang.Object
hec.map.aishape.AiShapeWriter
A shape writer class that will write shapes and shape attributes in a stream. This class
does not require that all data be loaded a ahead of time (i.e. AiShapeMap). This works
well for applications that use large amounts of data that need to be written to shape files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendShape
(AiShapeObject shapeObject, Attribute attribute) void
appendShape
(List<AiShapeObject> shapeObjects, List<Attribute> attributes) void
void
init
(List<AiShapeFieldDescriptor> fieldDescriptors) protected Identifier
newThenOpenFile
(Identifier pathId) boolean
void
void
setFileOpener
(FileOpener fileOpener) void
void
setShapeType
(int shapeType) void
writeDBFHeader
(EndianOutputStream output)
-
Constructor Details
-
AiShapeWriter
public AiShapeWriter()
-
-
Method Details
-
setShapeType
public void setShapeType(int shapeType) -
setIdentifier
-
setFileOpener
-
init
- Throws:
IOException
-
closeFiles
- Throws:
IOException
-
appendShape
- Throws:
IOException
-
appendShape
public void appendShape(List<AiShapeObject> shapeObjects, List<Attribute> attributes) throws IOException - Throws:
IOException
-
newThenOpenFile
-
writeDBFHeader
-
getProjectionFile
-
saveProjectionFile
public boolean saveProjectionFile() -
setCoordinateReferenceSystem
-