public class DALFeaturePersister
extends java.lang.Object
| Constructor and Description |
|---|
DALFeaturePersister(FeatureStore out,
java.lang.String[] fieldNames) |
DALFeaturePersister(FeatureStore out,
java.lang.String[] fieldNames,
NamesTranslator namesTranslator)
Sets the output FeatureType
|
| Modifier and Type | Method and Description |
|---|---|
EditableFeature |
addDifferentFieldFeature(Feature feature,
Geometry newGeom)
Adds a DAL feature to the FeatureStore when the field structure in the
new feature is different to the source field structure.
|
EditableFeature |
addFeature(Feature feature1,
Feature feature2,
Geometry newGeom)
Adds a JTS feature to the FeatureStore
|
EditableFeature |
addFeature(Feature feature,
Geometry newGeom)
Adds a JTS feature to the FeatureStore
|
EditableFeature |
addFeature(Feature feature,
java.util.List<Geometry> newJTSListGeom)
Adds a JTS feature to the FeatureStore
|
EditableFeature |
addFeature(Geometry newGeom,
java.util.ArrayList<java.lang.String> names,
java.util.ArrayList<java.lang.Object> values)
Adds a geometry feature to the FeatureStore
|
EditableFeature |
addFeature(Geometry newGeom,
java.util.ArrayList<java.lang.String> names,
java.util.ArrayList<java.lang.Object> values)
Adds a JTS feature to the FeatureStore
|
EditableFeature |
addFeature(Geometry newGeom,
int id,
double value)
Adds a JTS feature to the FeatureStore
|
EditableFeature |
addFeature(Geometry newGeom,
int id,
double value1,
double value2)
Adds a JTS feature to the FeatureStore
|
EditableFeature |
addFeature(Geometry newGeom,
java.lang.String name,
java.lang.Object value)
Adds a JTS feature to the FeatureStore
|
EditableFeature |
addGeometryToExistingFeature(EditableFeature feature,
Geometry newGeom)
Adds a DAL feature to the FeatureStore
|
java.util.ArrayList<Geometry> |
convertGeometryCollection2GeometryList(Geometry g,
int type)
Converts a geometry collection from JTS to a list of geometries of the
selected type.The GeometryCollection is converted only when it is a
heterogeneous collection of geometries
|
void |
end()
Ends the edition and closes the FeatureStore
|
java.lang.String[] |
getFieldNames()
Gets the list of field names
|
java.lang.String[] |
getFieldNamesWithoutGeom()
Gets the list of field names
|
FeatureStore |
getOutputFeatureStore()
Gets the output FeatureStore
|
int |
getShapeType(FeatureStore storeLayer1)
Gets the shape type of the selected feature store
|
int |
getType() |
boolean |
isCompatibleType(Geometry geom) |
public DALFeaturePersister(FeatureStore out, java.lang.String[] fieldNames, NamesTranslator namesTranslator)
out - DataExceptionpublic DALFeaturePersister(FeatureStore out, java.lang.String[] fieldNames)
public java.lang.String[] getFieldNames()
public java.lang.String[] getFieldNamesWithoutGeom()
public EditableFeature addFeature(Feature feature1, Feature feature2, Geometry newGeom) throws CreateGeometryException, DataException
entry - newGeom - CreateGeometryExceptionDataExceptionpublic java.util.ArrayList<Geometry> convertGeometryCollection2GeometryList(Geometry g, int type) throws GeometryOperationNotSupportedException, GeometryOperationException
type - GeometryOperationExceptionGeometryOperationNotSupportedExceptionpublic EditableFeature addFeature(Feature feature, Geometry newGeom) throws CreateGeometryException, DataException
entry - newGeom - CreateGeometryExceptionDataExceptionpublic EditableFeature addFeature(Geometry newGeom, int id, double value) throws CreateGeometryException, DataException
entry - newGeom - CreateGeometryExceptionDataExceptionpublic EditableFeature addFeature(Feature feature, java.util.List<Geometry> newJTSListGeom) throws CreateGeometryException, DataException
entry - newGeom - CreateGeometryExceptionDataExceptionpublic EditableFeature addFeature(Geometry newGeom, java.lang.String name, java.lang.Object value) throws CreateGeometryException, DataException
entry - newGeom - CreateGeometryExceptionDataExceptionpublic EditableFeature addFeature(Geometry newGeom, java.util.ArrayList<java.lang.String> names, java.util.ArrayList<java.lang.Object> values) throws CreateGeometryException, DataException
entry - newGeom - CreateGeometryExceptionDataExceptionpublic EditableFeature addFeature(Geometry newGeom, java.util.ArrayList<java.lang.String> names, java.util.ArrayList<java.lang.Object> values) throws CreateGeometryException, DataException
entry - newGeom - CreateGeometryExceptionDataExceptionpublic EditableFeature addFeature(Geometry newGeom, int id, double value1, double value2) throws CreateGeometryException, DataException
entry - newGeom - CreateGeometryExceptionDataExceptionpublic EditableFeature addDifferentFieldFeature(Feature feature, Geometry newGeom) throws CreateGeometryException, DataException
entry - newGeom - CreateGeometryExceptionDataExceptionpublic EditableFeature addGeometryToExistingFeature(EditableFeature feature, Geometry newGeom) throws CreateGeometryException, DataException
entry - newGeom - CreateGeometryExceptionDataExceptionpublic void end()
public int getShapeType(FeatureStore storeLayer1) throws ReadException
FeatureStore - sourceReadExceptionpublic int getType()
public boolean isCompatibleType(Geometry geom)
public FeatureStore getOutputFeatureStore()