Package org.tailormap.api.geotools.wfs
Class SimpleWFSHelper
java.lang.Object
org.tailormap.api.geotools.wfs.SimpleWFSHelper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleWFSLayerDescription
describeWMSLayer
(String url, String username, String password, String layerName) static Map<String,
SimpleWFSLayerDescription> static URI
getOGCRequestURL
(String url, String service, String version, String request, org.springframework.util.MultiValueMap<String, String> parameters) getOutputFormats
(String wfsUrl, String typeName, String username, String password) Get a list of GetFeature output formats for a WFS feature type.getOutputFormats
(String wfsUrl, String typeName, String username, String password, HttpClient httpClient) static URI
getWFSRequestURL
(String wfsUrl, String request) static URI
getWFSRequestURL
(String wfsUrl, String request, String version, org.springframework.util.MultiValueMap<String, String> parameters) static URI
getWFSRequestURL
(String wfsUrl, String request, org.springframework.util.MultiValueMap<String, String> parameters)
-
Field Details
-
TIMEOUT
public static final int TIMEOUT- See Also:
-
DEFAULT_WFS_VERSION
- See Also:
-
-
Constructor Details
-
SimpleWFSHelper
public SimpleWFSHelper()
-
-
Method Details
-
getWFSRequestURL
-
getWFSRequestURL
-
getWFSRequestURL
-
getOGCRequestURL
-
getOutputFormats
public static List<String> getOutputFormats(String wfsUrl, String typeName, String username, String password) throws Exception Get a list of GetFeature output formats for a WFS feature type.If there are no specific output formats for the type, the generally supported output formats are returned. Requests WFS 1.1.0 but also handles WFS 2.0.0 responses.
Uses a 'lightweight' WFS implementation parsing only the XML WFS capabilities to extract the output formats using XPath, instead of using a heavyweight GeoTools WFS DataStore which is much slower.
- Throws:
Exception
-
getOutputFormats
public static List<String> getOutputFormats(String wfsUrl, String typeName, String username, String password, HttpClient httpClient) throws Exception - Throws:
Exception
-
describeWMSLayer
public static SimpleWFSLayerDescription describeWMSLayer(String url, String username, String password, String layerName) -
describeWMSLayers
-