Class SimpleWFSHelper
java.lang.Object
nl.b3p.tailormap.api.geotools.wfs.SimpleWFSHelper
Lightweight WFS client helper with a fault-tolerant 'be liberal in what you accept' design - no
complete WFS XML mapping for capabilities and XML feature type schemas such as the heavyweight
GeoTools WFS DataStore.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleWFSLayerDescriptiondescribeWMSLayer(String url, String username, String password, String layerName) static Map<String,SimpleWFSLayerDescription> static URIgetOGCRequestURL(String url, String service, String version, String request, org.springframework.util.MultiValueMap<String, String> parameters) getOutputFormats(String wfsUrl, String typeName, String username, String password) Just get the list of supported output formats for the typename.getOutputFormats(String wfsUrl, String typeName, String username, String password, HttpClient httpClient) static org.geotools.ows.wms.WebMapServergetWebMapServer(String url, String username, String password) static URIgetWFSRequestURL(String wfsUrl, String request) static URIgetWFSRequestURL(String wfsUrl, String request, String version, org.springframework.util.MultiValueMap<String, String> parameters) static URIgetWFSRequestURL(String wfsUrl, String request, org.springframework.util.MultiValueMap<String, String> parameters)
-
Field Details
-
TIMEOUT
public static final int TIMEOUT- 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 Just get the list of supported output formats for the typename. 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.- Throws:
Exception
-
getOutputFormats
public static List<String> getOutputFormats(String wfsUrl, String typeName, String username, String password, HttpClient httpClient) throws Exception - Throws:
Exception
-
getWebMapServer
public static org.geotools.ows.wms.WebMapServer getWebMapServer(String url, String username, String password) throws IOException, org.geotools.ows.ServiceException - Throws:
IOExceptionorg.geotools.ows.ServiceException
-
describeWMSLayer
public static SimpleWFSLayerDescription describeWMSLayer(String url, String username, String password, String layerName) -
describeWMSLayers
-