public class CollectionAction_PolygonizeWithAttr extends CollectionAction
| Modifier and Type | Field and Description |
|---|---|
protected double |
lineCloseTolerance |
protected static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
CollectionAction_PolygonizeWithAttr(org.geotools.data.DataStore dataStore2Write,
Map properties) |
| Modifier and Type | Method and Description |
|---|---|
com.vividsolutions.jts.geom.Geometry |
closeLineString(com.vividsolutions.jts.geom.LineString ls) |
org.opengis.filter.Filter |
createLineFilter(org.opengis.feature.simple.SimpleFeature feature,
ArrayList<String> propertyNames) |
org.opengis.feature.simple.SimpleFeatureType |
createNewFeatureType(org.opengis.feature.simple.SimpleFeatureType featureType,
int attributeId,
Class binding) |
ArrayList<com.vividsolutions.jts.geom.Polygon> |
createPolygonWithLines(ArrayList<org.opengis.feature.simple.SimpleFeature> lines) |
void |
execute(org.geotools.feature.DefaultFeatureCollection originalCollection,
Action nextAction) |
void |
execute(org.geotools.feature.FeatureCollection collection,
Action writer) |
ArrayList<org.opengis.feature.simple.SimpleFeature> |
filterInvalidLines(org.geotools.feature.FeatureIterator lineFeatures) |
String |
getAttributeFeatureName() |
String |
getCqlFilterString() |
org.geotools.data.DataStore |
getDataStore2Write() |
double |
getLineCloseTolerance() |
String |
getLineFeatureName() |
Boolean |
isPositivePolygon(com.vividsolutions.jts.geom.Polygon polygon,
ArrayList<org.opengis.feature.simple.SimpleFeature> correctLineFeatures,
org.opengis.feature.simple.SimpleFeature feature) |
static void |
main(String[] args) |
void |
preExecute()
PreExecute function is called by the execute function before the rest is done.
|
void |
setAttributeFeatureName(String attributeFeatureName) |
void |
setCqlFilterString(String cqlFilterString) |
void |
setDataStore2Write(org.geotools.data.DataStore dataStore2Write) |
void |
setLineCloseTolerance(int lineCloseTolerance) |
void |
setLineFeatureName(String lineFeatureName) |
static void |
testMerge2() |
geometryCollectionToWKTStringprotected static final org.apache.commons.logging.Log log
protected double lineCloseTolerance
public void execute(org.geotools.feature.DefaultFeatureCollection originalCollection,
Action nextAction)
public void preExecute()
public org.opengis.filter.Filter createLineFilter(org.opengis.feature.simple.SimpleFeature feature,
ArrayList<String> propertyNames)
throws org.geotools.filter.text.cql2.CQLException
org.geotools.filter.text.cql2.CQLExceptionpublic ArrayList<org.opengis.feature.simple.SimpleFeature> filterInvalidLines(org.geotools.feature.FeatureIterator lineFeatures)
public ArrayList<com.vividsolutions.jts.geom.Polygon> createPolygonWithLines(ArrayList<org.opengis.feature.simple.SimpleFeature> lines)
public com.vividsolutions.jts.geom.Geometry closeLineString(com.vividsolutions.jts.geom.LineString ls)
public org.opengis.feature.simple.SimpleFeatureType createNewFeatureType(org.opengis.feature.simple.SimpleFeatureType featureType,
int attributeId,
Class binding)
public String getCqlFilterString()
public void setCqlFilterString(String cqlFilterString)
public void setAttributeFeatureName(String attributeFeatureName)
public String getAttributeFeatureName()
public String getLineFeatureName()
public void setLineFeatureName(String lineFeatureName)
public void setDataStore2Write(org.geotools.data.DataStore dataStore2Write)
public org.geotools.data.DataStore getDataStore2Write()
public Boolean isPositivePolygon(com.vividsolutions.jts.geom.Polygon polygon, ArrayList<org.opengis.feature.simple.SimpleFeature> correctLineFeatures, org.opengis.feature.simple.SimpleFeature feature)
public void setLineCloseTolerance(int lineCloseTolerance)
public double getLineCloseTolerance()
public static void testMerge2()
throws IOException,
org.geotools.filter.text.cql2.CQLException,
Exception
IOExceptionorg.geotools.filter.text.cql2.CQLExceptionExceptionpublic void execute(org.geotools.feature.FeatureCollection collection,
Action writer)
execute in class CollectionActionCopyright © 2016. All rights reserved.