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 TypeMethodDescriptionvoidappendShape(AiShapeObject shapeObject, Attribute attribute) voidappendShape(List<AiShapeObject> shapeObjects, List<Attribute> attributes) voidvoidinit(List<AiShapeFieldDescriptor> fieldDescriptors) protected IdentifiernewThenOpenFile(Identifier pathId) booleanvoidvoidsetFileOpener(FileOpener fileOpener) voidvoidsetShapeType(int shapeType) voidwriteDBFHeader(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
-