public class StreamingShapeWriter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
StreamingShapeWriter(String workingDir)
Constructor with shapeIndex=true
|
StreamingShapeWriter(String workingDir,
boolean shapeIndex)
Constructor for creating a StreamingShapeWriter.
|
StreamingShapeWriter(String workingDir,
boolean shapeIndex,
List<String> skipAttributeNames)
Constructor for creating a StreamingShapeWriter.
|
StreamingShapeWriter(String workingDir,
org.opengis.referencing.crs.CoordinateReferenceSystem defaultCoordRefSys)
Constructor with shapeIndex=true
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Function to close this writer.
|
int |
getFeaturesGiven() |
int |
getFeaturesWritten() |
List<String> |
getSkipAttributeNames() |
String |
getWorkingDir() |
boolean |
isShapeIndex() |
void |
setSkipAttributeNames(List<String> skipAttributeNames) |
void |
write(org.opengis.feature.simple.SimpleFeature f)
Writes a feature to a shape file.
|
public StreamingShapeWriter(String workingDir, org.opengis.referencing.crs.CoordinateReferenceSystem defaultCoordRefSys) throws IOException
IOExceptionpublic StreamingShapeWriter(String workingDir) throws IOException
IOExceptionpublic StreamingShapeWriter(String workingDir, boolean shapeIndex, List<String> skipAttributeNames) throws IOException
workingDir - The working dir where the shape writer is going to write the shape filesshapeIndex - If true a index wil be created on the shape files.skipAttributeNames - a list of attribute names that needs to be skipped (default only boundedBy)IOExceptionpublic StreamingShapeWriter(String workingDir, boolean shapeIndex) throws IOException
workingDir - The working dir where the shape writer is going to write the shape filesshapeIndex - If true a index wil be created on the shape files.IOExceptionpublic void write(org.opengis.feature.simple.SimpleFeature f)
throws IOException,
TransformerConfigurationException,
TransformerException,
ParserConfigurationException,
SAXException,
org.opengis.referencing.operation.TransformException,
org.opengis.referencing.FactoryException
IOExceptionTransformerConfigurationExceptionTransformerExceptionParserConfigurationExceptionSAXExceptionorg.opengis.referencing.operation.TransformExceptionorg.opengis.referencing.FactoryExceptionpublic void close()
public int getFeaturesGiven()
public int getFeaturesWritten()
public String getWorkingDir()
public boolean isShapeIndex()
Copyright © 2021 B3Partners B.V.. All rights reserved.