public class WFSFacade extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CISMAP_BOUNDING_BOX_AS_GML_PLACEHOLDER |
static String |
CISMAP_RESULT_TYPE_PLACEHOLDER |
static String |
SRS_NAME_PLACEHOLDER |
| Constructor and Description |
|---|
WFSFacade(WFSCapabilities cap,
ResponseParserFactory parserFactory)
this constructor should only be used by the WFSCapabilities classes.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
changePropertyNames(org.jdom.Element query,
Collection<String> properties,
String version)
Replaces the current property names with the given property names in the getFeature query.
|
FeatureTypeDescription |
describeFeatureType(FeatureType feature)
sends a describeFeatureType request to the corresponding wfs.
|
static FeatureType |
extractFeatureTypeFromCap(String featureName,
WFSCapabilities cap)
DOCUMENT ME!
|
static FeatureType |
extractRequestedFeatureType(String request,
WFSCapabilities cap)
DOCUMENT ME!
|
org.jdom.Element |
getGetFeatureQuery(FeatureType feature)
Returns a template for a getFeature request.
|
static String |
getOptimalCrsForFeature(FeatureType feature,
String mapSrs)
DOCUMENT ME!
|
static void |
setGeometry(org.jdom.Element query,
String geoName,
String version)
Replaces the geometry-property in the given getFeature query template.
|
String |
setGetFeatureBoundingBox(String query,
XBoundingBox bbox,
FeatureType feature,
String mapCrs,
boolean reverseAxisOrder)
Set the bounding box and the srs of the given getFeature request and returns the resulting request as string.
|
String |
setGetFeatureBoundingBox(String query,
XBoundingBox bbox,
FeatureType feature,
String mapCrs,
boolean reverseAxisOrder,
boolean onlyFeatureCount)
Set the bounding box and the srs of the given getFeature request and returns the resulting request as string.
|
static void |
setMaxFeatureCount(org.jdom.Element wfsQuery,
int maxFeatureCount,
String version)
Replaces the current max feature count with the given max feature count in the given getFeature request.
|
public static final String CISMAP_BOUNDING_BOX_AS_GML_PLACEHOLDER
public static final String CISMAP_RESULT_TYPE_PLACEHOLDER
public static final String SRS_NAME_PLACEHOLDER
public WFSFacade(WFSCapabilities cap, ResponseParserFactory parserFactory)
cap - DOCUMENT ME!parserFactory - DOCUMENT ME!public FeatureTypeDescription describeFeatureType(FeatureType feature) throws IOException, Exception
feature - the feature, the request should be sent forIOException - DOCUMENT ME!Exception - DOCUMENT ME!public org.jdom.Element getGetFeatureQuery(FeatureType feature)
feature - the request template will be created for this featurepublic String setGetFeatureBoundingBox(String query, XBoundingBox bbox, FeatureType feature, String mapCrs, boolean reverseAxisOrder)
query - the getFeature request template.bbox - the bounding box that should be used in the getFeature requestfeature - the type of the feature from the given querymapCrs - the crs of the map, the features should be shown onreverseAxisOrder - if true, the axis order will be lat/lonpublic String setGetFeatureBoundingBox(String query, XBoundingBox bbox, FeatureType feature, String mapCrs, boolean reverseAxisOrder, boolean onlyFeatureCount)
query - the getFeature request template.bbox - the bounding box that should be used in the getFeature requestfeature - the type of the feature from the given querymapCrs - the crs of the map, the features should be shown onreverseAxisOrder - if true, the axis order will be lat/lononlyFeatureCount - the resultType attribute will be set to hits, iif onlyFeatureCount is truepublic static String getOptimalCrsForFeature(FeatureType feature, String mapSrs)
feature - DOCUMENT ME!mapSrs - DOCUMENT ME!public static FeatureType extractRequestedFeatureType(String request, WFSCapabilities cap)
request - DOCUMENT ME!cap - DOCUMENT ME!public static FeatureType extractFeatureTypeFromCap(String featureName, WFSCapabilities cap)
featureName - DOCUMENT ME!cap - DOCUMENT ME!public static void setMaxFeatureCount(org.jdom.Element wfsQuery,
int maxFeatureCount,
String version)
wfsQuery - query getFeature request as JDOM-elementmaxFeatureCount - properties collection of stringsversion - the version of the wfs request that is contained in the query paramaeterpublic static void changePropertyNames(org.jdom.Element query,
Collection<String> properties,
String version)
query - getFeature request as JDOM-elementproperties - the property namesversion - the version of the wfs request that is contained in the query paramaeterpublic static void setGeometry(org.jdom.Element query,
String geoName,
String version)
query - getFeature request as JDOM-elementgeoName - the name of the geometryversion - the version of the wfs request that is contained in the query paramaeterCopyright © 2012–2025 cismet GmbH. All rights reserved.