Class SimpleWFSHelper
- java.lang.Object
-
- nl.b3p.tailormap.api.geotools.wfs.SimpleWFSHelper
-
public class SimpleWFSHelper extends Object
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 Modifier and Type Field Description static intTIMEOUT
-
Constructor Summary
Constructors Constructor Description SimpleWFSHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleWFSLayerDescriptiondescribeWMSLayer(String url, String username, String password, String layerName)static Map<String,SimpleWFSLayerDescription>describeWMSLayers(String url, String username, String password, List<String> layers)static URIgetOGCRequestURL(String url, String service, String version, String request, org.springframework.util.MultiValueMap<String,String> parameters)static List<String>getOutputFormats(String wfsUrl, String typeName, String username, String password)Just get the list of supported output formats for the typename.static List<String>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 Detail
-
TIMEOUT
public static final int TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getWFSRequestURL
public static URI getWFSRequestURL(String wfsUrl, String request, org.springframework.util.MultiValueMap<String,String> parameters)
-
getWFSRequestURL
public static URI getWFSRequestURL(String wfsUrl, String request, String version, org.springframework.util.MultiValueMap<String,String> parameters)
-
getOGCRequestURL
public static URI getOGCRequestURL(String url, String service, String version, String request, org.springframework.util.MultiValueMap<String,String> parameters)
-
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)
-
-