public class GMLFeatureFactory extends DegreeFeatureFactory<DefaultFeatureServiceFeature,String> implements CachingFeatureFactory<DefaultFeatureServiceFeature,String>
DegreeFeatureFactory.ParsingProgressListenerFeatureFactory.TooManyFeaturesException| Modifier and Type | Field and Description |
|---|---|
protected com.vividsolutions.jts.index.strtree.STRtree |
degreeFeaturesTree |
protected BufferedReader |
documentReader |
protected URI |
documentURI |
protected com.vividsolutions.jts.geom.Geometry |
envelope |
protected Vector<FeatureServiceAttribute> |
featureServiceAttributes |
protected org.deegree.model.feature.GMLFeatureCollectionDocument |
gmlDocument |
protected boolean |
initialised |
protected int |
maxCachedFeatureCount |
featureSrid, geometryIndexDEBUG, groovyShell, ID, lastCreatedfeatureVector, lastGeom, lastQuery, layerName, layerProperties, logger, maxFeatureCount, styles| Modifier | Constructor and Description |
|---|---|
protected |
GMLFeatureFactory(GMLFeatureFactory gmlff)
Creates a new GMLFeatureFactory object.
|
|
GMLFeatureFactory(LayerProperties layerProperties,
URI documentURL,
int maxCachedFeatureCount,
SwingWorker workerThread)
Creates a new GMLFeatureFactory object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup()
DOCUMENT ME!
|
GMLFeatureFactory |
clone()
DOCUMENT ME!
|
Vector<FeatureServiceAttribute> |
createAttributes(SwingWorker workerThread)
DOCUMENT ME!
|
protected DefaultFeatureServiceFeature |
createFeatureInstance(org.deegree.model.feature.Feature degreeFeature,
int index)
DOCUMENT ME!
|
List<DefaultFeatureServiceFeature> |
createFeatures(String query,
BoundingBox boundingBox,
SwingWorker workerThread)
DOCUMENT ME!
|
List<DefaultFeatureServiceFeature> |
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). |
void |
flush()
DOCUMENT ME!
|
URI |
getDocumentURI()
Get the value of documentURL.
|
com.vividsolutions.jts.geom.Geometry |
getEnvelope()
DOCUMENT ME!
|
int |
getFeatureCount(String query,
BoundingBox bb)
DOCUMENT ME!
|
int |
getMaxCachedFeatureCount()
DOCUMENT ME!
|
protected boolean |
isGenerateIds()
DOCUMENT ME!
|
boolean |
isLazy()
DOCUMENT ME!
|
protected void |
parseGMLFile(SwingWorker workerThread)
DOCUMENT ME!
|
void |
setDocumentURI(URI documentURI)
Set the value of documentURL.
|
void |
setEnvelope(com.vividsolutions.jts.geom.Geometry envelope)
DOCUMENT ME!
|
void |
setMaxCachedFeatureCount(int maxCachedFeatureCount)
DOCUMENT ME!
|
initialiseFeature, processFeatureCollectioncheckCancelled, createFeaturesFromMemory, createNewFeature, evaluateBeanShellExpression, evaluateExpressions, evaluateGroovyExpressions, featuresAlreadyInMemory, getLastCreatedFeatures, getLayerProperties, getMaxFeatureCount, getStyle, getStyle, reEvaluteExpressions, setInterruptedAllowed, setInterruptedNotAllowed, setLayerName, setLayerProperties, setMaxFeatureCount, setSLDStyle, sortFeatureList, updateLastCreatedFeatures, waitUntilInterruptedIsAllowedequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateNewFeature, getLastCreatedFeatures, getLayerProperties, getMaxFeatureCount, setLayerName, setLayerProperties, setMaxFeatureCount, setSLDStyleprotected int maxCachedFeatureCount
protected URI documentURI
protected org.deegree.model.feature.GMLFeatureCollectionDocument gmlDocument
protected boolean initialised
protected com.vividsolutions.jts.index.strtree.STRtree degreeFeaturesTree
protected Vector<FeatureServiceAttribute> featureServiceAttributes
protected BufferedReader documentReader
protected com.vividsolutions.jts.geom.Geometry envelope
public GMLFeatureFactory(LayerProperties layerProperties, URI documentURL, int maxCachedFeatureCount, SwingWorker workerThread) throws Exception
layerProperties - DOCUMENT ME!documentURL - DOCUMENT ME!maxCachedFeatureCount - DOCUMENT ME!workerThread - DOCUMENT ME!Exception - DOCUMENT ME!protected GMLFeatureFactory(GMLFeatureFactory gmlff)
gmlff - DOCUMENT ME!protected DefaultFeatureServiceFeature createFeatureInstance(org.deegree.model.feature.Feature degreeFeature, int index) throws Exception
createFeatureInstance in class DegreeFeatureFactory<DefaultFeatureServiceFeature,String>degreeFeature - DOCUMENT ME!index - DOCUMENT ME!Exception - DOCUMENT ME!#processFeatureCollection(javax.swing.SwingWorker, org.deegree2.model.feature.Feature[], boolean)protected void cleanup()
public boolean isLazy()
isLazy in interface CachingFeatureFactory<DefaultFeatureServiceFeature,String>protected void parseGMLFile(SwingWorker workerThread) throws Exception
workerThread - DOCUMENT ME!Exception - DOCUMENT ME!public void flush()
flush in interface CachingFeatureFactory<DefaultFeatureServiceFeature,String>public int getMaxCachedFeatureCount()
getMaxCachedFeatureCount in interface CachingFeatureFactory<DefaultFeatureServiceFeature,String>public void setMaxCachedFeatureCount(int maxCachedFeatureCount)
setMaxCachedFeatureCount in interface CachingFeatureFactory<DefaultFeatureServiceFeature,String>maxCachedFeatureCount - DOCUMENT ME!FeatureFactory.setMaxFeatureCount(int)public URI getDocumentURI()
public void setDocumentURI(URI documentURI)
documentURI - new value of documentURLpublic List<DefaultFeatureServiceFeature> createFeatures(String query, BoundingBox boundingBox, SwingWorker workerThread) throws FeatureFactory.TooManyFeaturesException, Exception
createFeatures in interface FeatureFactory<DefaultFeatureServiceFeature,String>query - DOCUMENT ME!boundingBox - DOCUMENT ME!workerThread - DOCUMENT ME!FeatureFactory.TooManyFeaturesException - DOCUMENT ME!Exception - DOCUMENT ME!public Vector<FeatureServiceAttribute> createAttributes(SwingWorker workerThread) throws FeatureFactory.TooManyFeaturesException, Exception
createAttributes in interface FeatureFactory<DefaultFeatureServiceFeature,String>workerThread - DOCUMENT ME!FeatureFactory.TooManyFeaturesException - DOCUMENT ME!Exception - DOCUMENT ME!protected boolean isGenerateIds()
isGenerateIds in class AbstractFeatureFactory<DefaultFeatureServiceFeature,String>public GMLFeatureFactory clone()
clone in interface FeatureFactory<DefaultFeatureServiceFeature,String>clone in class AbstractFeatureFactory<DefaultFeatureServiceFeature,String>public int getFeatureCount(String query, BoundingBox bb)
FeatureFactorygetFeatureCount in interface FeatureFactory<DefaultFeatureServiceFeature,String>query - DOCUMENT ME!bb - DOCUMENT ME!public List<DefaultFeatureServiceFeature> 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.createFeatures in interface FeatureFactory<DefaultFeatureServiceFeature,String>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 parsingpublic com.vividsolutions.jts.geom.Geometry getEnvelope()
public void setEnvelope(com.vividsolutions.jts.geom.Geometry envelope)
envelope - the envelope to setCopyright © 2012–2026 cismet GmbH. All rights reserved.