@UrlBinding(value="/action/feature/split") @StrictBinding public class SplitFeatureActionBean extends Object implements net.sourceforge.stripes.action.ActionBean
| Constructor and Description |
|---|
SplitFeatureActionBean() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterSplit(List<org.opengis.filter.identity.FeatureId> ids)
Called after the split is completed and commit was performed.
|
void |
checkAuthorization() |
ApplicationLayer |
getAppLayer() |
Application |
getApplication() |
net.sourceforge.stripes.action.ActionBeanContext |
getContext() |
String |
getExtraData() |
Layer |
getLayer() |
String |
getSplitFeatureFID() |
String |
getStrategy() |
String |
getToSplitWithFeature() |
protected List<org.opengis.feature.simple.SimpleFeature> |
handleExtraData(List<org.opengis.feature.simple.SimpleFeature> features)
Handle extra data, to be extended by subclasses.
|
protected org.opengis.feature.simple.SimpleFeature |
handleExtraData(org.opengis.feature.simple.SimpleFeature feature)
Handle extra data, delegates to
handleExtraData(java.util.List). |
protected List<org.opengis.filter.identity.FeatureId> |
handleStrategy(org.opengis.feature.simple.SimpleFeature feature,
List<? extends com.vividsolutions.jts.geom.Geometry> geoms,
org.opengis.filter.Filter filter,
org.geotools.data.simple.SimpleFeatureStore localStore,
String localStrategy)
Handles the feature creation/update/deletion strategy.
|
void |
loadLayer() |
void |
setAppLayer(ApplicationLayer appLayer) |
void |
setApplication(Application application) |
void |
setContext(net.sourceforge.stripes.action.ActionBeanContext context) |
void |
setExtraData(String extraData) |
void |
setSplitFeatureFID(String splitFeatureFID) |
void |
setStrategy(String strategy) |
void |
setToSplitWithFeature(String toSplitWithFeature) |
net.sourceforge.stripes.action.Resolution |
split() |
protected List<com.vividsolutions.jts.geom.LineString> |
splitLine(com.vividsolutions.jts.geom.Geometry toSplit,
com.vividsolutions.jts.geom.Geometry line) |
protected List<com.vividsolutions.jts.geom.Polygon> |
splitPolygon(com.vividsolutions.jts.geom.Geometry poly,
com.vividsolutions.jts.geom.Geometry line) |
@After(stages=BindingAndValidation) public void loadLayer()
@Before(stages=EventHandling) public void checkAuthorization()
public net.sourceforge.stripes.action.Resolution split()
throws org.json.JSONException
org.json.JSONExceptionprotected List<org.opengis.feature.simple.SimpleFeature> handleExtraData(List<org.opengis.feature.simple.SimpleFeature> features) throws Exception
features - a list of features that can be modifiedException - if anyhandleExtraData(org.opengis.feature.simple.SimpleFeature)protected org.opengis.feature.simple.SimpleFeature handleExtraData(org.opengis.feature.simple.SimpleFeature feature)
throws Exception
handleExtraData(java.util.List).feature - the feature that can be modifiedException - if anyhandleExtraData(java.util.List)protected void afterSplit(List<org.opengis.filter.identity.FeatureId> ids)
ids - The list of committed feature idsprotected List<org.opengis.filter.identity.FeatureId> handleStrategy(org.opengis.feature.simple.SimpleFeature feature, List<? extends com.vividsolutions.jts.geom.Geometry> geoms, org.opengis.filter.Filter filter, org.geotools.data.simple.SimpleFeatureStore localStore, String localStrategy) throws Exception
feature - the feature that is about to be splitgeoms - new geometries that are the result of splittingfilter - filter to get at featurelocalStore - the store we're working againstlocalStrategy - the strategy in useException - if an error occurs modifying the data source,
converting the geometry or an illegal argument was givenprotected List<com.vividsolutions.jts.geom.LineString> splitLine(com.vividsolutions.jts.geom.Geometry toSplit, com.vividsolutions.jts.geom.Geometry line)
toSplit - the line to splitline - the line to use for the splitprotected List<com.vividsolutions.jts.geom.Polygon> splitPolygon(com.vividsolutions.jts.geom.Geometry poly, com.vividsolutions.jts.geom.Geometry line)
poly - the polygon to splitline - the line to use for the splitpublic net.sourceforge.stripes.action.ActionBeanContext getContext()
getContext in interface net.sourceforge.stripes.action.ActionBeanpublic void setContext(net.sourceforge.stripes.action.ActionBeanContext context)
setContext in interface net.sourceforge.stripes.action.ActionBeanpublic Application getApplication()
public void setApplication(Application application)
public ApplicationLayer getAppLayer()
public void setAppLayer(ApplicationLayer appLayer)
public String getToSplitWithFeature()
public void setToSplitWithFeature(String toSplitWithFeature)
public String getSplitFeatureFID()
public void setSplitFeatureFID(String splitFeatureFID)
public String getStrategy()
public void setStrategy(String strategy)
public String getExtraData()
public void setExtraData(String extraData)
public Layer getLayer()
Copyright © 2018. All rights reserved.