public class WFSFeatureFactory extends DegreeFeatureFactory<WFSFeature,String>
createFeatures leads to a new WFS request, even
if the bounding box is the same. However, it is possible to obtain the features created by the latesd WFS request via
the getLastCreatedFeatures() operation.DegreeFeatureFactory.ParsingProgressListenerFeatureFactory.TooManyFeaturesException| Modifier and Type | Field and Description |
|---|---|
protected FeatureType |
featureType |
protected String |
hostname |
featureSrid, geometryIndexDEBUG, groovyShell, ID, lastCreatedfeatureVector, lastGeom, lastQuery, layerName, layerProperties, logger, maxFeatureCount, styles| Modifier | Constructor and Description |
|---|---|
|
WFSFeatureFactory(LayerProperties layerProperties,
String hostname,
FeatureType featureType,
Crs crs,
Map<String,LinkedList<org.deegree.style.se.unevaluated.Style>> styles)
private Vector
|
|
WFSFeatureFactory(LayerProperties layerProperties,
String hostname,
FeatureType featureType,
Crs crs,
Map<String,LinkedList<org.deegree.style.se.unevaluated.Style>> styles,
boolean reverseAxisOrder)
private Vector
|
protected |
WFSFeatureFactory(WFSFeatureFactory wfsff)
Creates a new WFSFeatureFactory object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup(InputStreamReader reader,
org.apache.commons.httpclient.methods.PostMethod httppost)
DOCUMENT ME!
|
WFSFeatureFactory |
clone()
DOCUMENT ME!
|
static String |
convertFeatureQnameToName(QName qname)
DOCUMENT ME!
|
Vector |
createAttributes(SwingWorker workerThread)
DOCUMENT ME!
|
protected WFSFeature |
createFeatureInstance(org.deegree.model.feature.Feature degreeFeature,
int index)
DOCUMENT ME!
|
Vector<WFSFeature> |
createFeatures(String query,
BoundingBox boundingBox,
SwingWorker workerThread)
TODO: Track Progress?
|
List<WFSFeature> |
createFeatures(String query,
BoundingBox boundingBox,
SwingWorker workerThread,
int offset,
int limit,
FeatureServiceAttribute[] orderBy)
Returns instances of features
FT that match the optional query and that fall into the optional
BoundingBox.Applies layerProperties (if set) on all Features (if the type of the feature implements the interface InheritsLayerProperties). |
Crs |
getCrs()
DOCUMENT ME!
|
int |
getFeatureCount(String query,
BoundingBox bb)
DOCUMENT ME!
|
protected void |
initialiseFeature(WFSFeature featureServiceFeature,
org.deegree.model.feature.Feature degreeFeature,
boolean evaluateExpressions,
int index)
Perform standard initialisation of a newly created feature.
In gereal, this operation is invokded by the processFeatureCollection operation. |
protected boolean |
isGenerateIds()
DOCUMENT ME!
|
void |
setCrs(Crs crs)
DOCUMENT ME!
|
void |
setHostname(String hostname)
DOCUMENT ME!
|
processFeatureCollectioncheckCancelled, createFeaturesFromMemory, createNewFeature, evaluateBeanShellExpression, evaluateExpressions, evaluateGroovyExpressions, featuresAlreadyInMemory, getLastCreatedFeatures, getLayerProperties, getMaxFeatureCount, getStyle, getStyle, reEvaluteExpressions, setInterruptedAllowed, setInterruptedNotAllowed, setLayerName, setLayerProperties, setMaxFeatureCount, setSLDStyle, sortFeatureList, updateLastCreatedFeatures, waitUntilInterruptedIsAllowedprotected String hostname
protected FeatureType featureType
public WFSFeatureFactory(LayerProperties layerProperties, String hostname, FeatureType featureType, Crs crs, Map<String,LinkedList<org.deegree.style.se.unevaluated.Style>> styles)
layerProperties - DOCUMENT ME!hostname - DOCUMENT ME!featureType - wfsVersion DOCUMENT ME!crs - DOCUMENT ME!styles - DOCUMENT ME!public WFSFeatureFactory(LayerProperties layerProperties, String hostname, FeatureType featureType, Crs crs, Map<String,LinkedList<org.deegree.style.se.unevaluated.Style>> styles, boolean reverseAxisOrder)
layerProperties - DOCUMENT ME!hostname - DOCUMENT ME!featureType - wfsVersion DOCUMENT ME!crs - DOCUMENT ME!styles - DOCUMENT ME!reverseAxisOrder - DOCUMENT ME!protected WFSFeatureFactory(WFSFeatureFactory wfsff)
wfsff - DOCUMENT ME!public void setHostname(String hostname)
hostname - DOCUMENT ME!public Vector<WFSFeature> createFeatures(String query, BoundingBox boundingBox, SwingWorker workerThread) throws FeatureFactory.TooManyFeaturesException, Exception
query - DOCUMENT ME!boundingBox - DOCUMENT ME!workerThread - DOCUMENT ME!FeatureFactory.TooManyFeaturesException - DOCUMENT ME!Exception - DOCUMENT ME!public Vector createAttributes(SwingWorker workerThread) throws FeatureFactory.TooManyFeaturesException, UnsupportedOperationException, Exception
workerThread - DOCUMENT ME!FeatureFactory.TooManyFeaturesException - DOCUMENT ME!UnsupportedOperationException - DOCUMENT ME!Exception - DOCUMENT ME!protected void initialiseFeature(WFSFeature featureServiceFeature, org.deegree.model.feature.Feature degreeFeature, boolean evaluateExpressions, int index) throws Exception
DegreeFeatureFactoryprocessFeatureCollection operation.initialiseFeature in class DegreeFeatureFactory<WFSFeature,String>featureServiceFeature - DOCUMENT ME!degreeFeature - feature to be initialisedevaluateExpressions - DOCUMENT ME!index - DOCUMENT ME!Exception - DOCUMENT ME!#processFeatureCollection(javax.swing.SwingWorker, org.deegree2.model.feature.Feature[], boolean)protected void cleanup(InputStreamReader reader, org.apache.commons.httpclient.methods.PostMethod httppost)
reader - DOCUMENT ME!httppost - DOCUMENT ME!protected WFSFeature createFeatureInstance(org.deegree.model.feature.Feature degreeFeature, int index) throws Exception
createFeatureInstance in class DegreeFeatureFactory<WFSFeature,String>degreeFeature - DOCUMENT ME!index - DOCUMENT ME!Exception - DOCUMENT ME!#processFeatureCollection(javax.swing.SwingWorker, org.deegree2.model.feature.Feature[], boolean)public static String convertFeatureQnameToName(QName qname)
qname - DOCUMENT ME!protected boolean isGenerateIds()
isGenerateIds in class AbstractFeatureFactory<WFSFeature,String>public WFSFeatureFactory clone()
clone in interface FeatureFactory<WFSFeature,String>clone in class AbstractFeatureFactory<WFSFeature,String>public Crs getCrs()
public void setCrs(Crs crs)
crs - the crs to setpublic int getFeatureCount(String query, BoundingBox bb)
FeatureFactoryquery - DOCUMENT ME!bb - DOCUMENT ME!public List<WFSFeature> createFeatures(String query, BoundingBox boundingBox, SwingWorker workerThread, int offset, int limit, FeatureServiceAttribute[] orderBy) throws FeatureFactory.TooManyFeaturesException, Exception
FeatureFactoryFT that match the optional query and that fall into the optional
BoundingBox.InheritsLayerProperties). The SwingWorker instance can be used to set the progress of the operation and
to check the worker thread was canceled. The state of the features list after a the operation was canceled is
undefined.query - optional query of type QT to select the features to be returnedboundingBox - optional BoundingBox to restrict the features to be returnedworkerThread - an optional worker thread that is observedoffset - the start indexlimit - a limitorderBy - the attributes, the features should be ordered byFTFeatureFactory.TooManyFeaturesException - if the maximum number of features is reached during processingException - if something went wrong during parsingCopyright © 2012–2025 cismet GmbH. All rights reserved.