public final class WmsUtilities
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.http.client.ClientHttpRequest |
createWmsRequest(MfClientHttpRequestFactory httpRequestFactory,
java.net.URI uri,
org.springframework.http.HttpMethod method)
Create a WMS request putting the params in the URL (GET) or in the body (POST).
|
static java.net.URI |
makeWmsGetLayerRequest(WmsLayerParam wmsLayerParam,
java.net.URI commonURI,
java.awt.Dimension imageSize,
double dpi,
double angle,
org.geotools.geometry.jts.ReferencedEnvelope bounds)
Make a WMS getLayer request and return the image read from the server.
|
public static java.net.URI makeWmsGetLayerRequest(WmsLayerParam wmsLayerParam, java.net.URI commonURI, java.awt.Dimension imageSize, double dpi, double angle, org.geotools.geometry.jts.ReferencedEnvelope bounds) throws org.opengis.referencing.FactoryException, java.net.URISyntaxException, java.io.IOException
wmsLayerParam - the wms request parameterscommonURI - the uri to use for the requests (excepting parameters of course.)imageSize - the size of the image to requestdpi - the dpi of the image to requestangle - the angle of the image to requestbounds - the area and projection of the request on the world.org.opengis.referencing.FactoryExceptionjava.net.URISyntaxExceptionjava.io.IOExceptionpublic static org.springframework.http.client.ClientHttpRequest createWmsRequest(MfClientHttpRequestFactory httpRequestFactory, java.net.URI uri, org.springframework.http.HttpMethod method) throws java.io.IOException
httpRequestFactory - the request factoryuri - the URI, including the parametersmethod - the HTTP methodjava.io.IOException