@UrlBinding(value="/action/feature/merge") @StrictBinding public class MergeFeaturesActionBean extends Object implements net.sourceforge.stripes.action.ActionBean
| Constructor and Description |
|---|
MergeFeaturesActionBean() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterMerge(List<org.opengis.filter.identity.FeatureId> ids)
Called after the merge is completed and commit was performed.
|
void |
checkAuthorization() |
ApplicationLayer |
getAppLayer() |
Application |
getApplication() |
net.sourceforge.stripes.action.ActionBeanContext |
getContext() |
String |
getExtraData() |
String |
getFidA() |
String |
getFidB() |
Layer |
getLayer() |
int |
getMergeGapDist() |
String |
getStrategy() |
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 featureA,
org.opengis.feature.simple.SimpleFeature featureB,
com.vividsolutions.jts.geom.Geometry newGeom,
org.opengis.filter.Filter filterA,
org.opengis.filter.Filter filterB,
org.geotools.data.simple.SimpleFeatureStore localStore,
String localStrategy)
Handles the feature creation/update/deletion strategy.
|
void |
loadLayer() |
net.sourceforge.stripes.action.Resolution |
merge() |
void |
setAppLayer(ApplicationLayer appLayer) |
void |
setApplication(Application application) |
void |
setContext(net.sourceforge.stripes.action.ActionBeanContext context) |
void |
setExtraData(String extraData) |
void |
setFidA(String fidA) |
void |
setFidB(String fidB) |
void |
setMergeGapDist(int mergeGapDist) |
void |
setStrategy(String strategy) |
@After(stages=BindingAndValidation) public void loadLayer()
@Before(stages=EventHandling) public void checkAuthorization()
public net.sourceforge.stripes.action.Resolution merge()
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 List<org.opengis.filter.identity.FeatureId> handleStrategy(org.opengis.feature.simple.SimpleFeature featureA, org.opengis.feature.simple.SimpleFeature featureB, com.vividsolutions.jts.geom.Geometry newGeom, org.opengis.filter.Filter filterA, org.opengis.filter.Filter filterB, org.geotools.data.simple.SimpleFeatureStore localStore, String localStrategy) throws Exception
featureA - the feature that is about to be merged intofeatureB - the feature that is about to be merged to AnewGeom - the new geometry that is the result of merging A and B
geometriesfilterA - filter to get at feature AfilterB - filter to get at feature BlocalStore - 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 void afterMerge(List<org.opengis.filter.identity.FeatureId> ids)
ids - The list of committed feature idspublic 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 getStrategy()
public void setStrategy(String strategy)
public String getFidA()
public void setFidA(String fidA)
public String getFidB()
public void setFidB(String fidB)
public int getMergeGapDist()
public void setMergeGapDist(int mergeGapDist)
public String getExtraData()
public void setExtraData(String extraData)
public Layer getLayer()
Copyright © 2016. All rights reserved.