public class MapGeneratorUtils extends Object
| Constructor and Description |
|---|
MapGeneratorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
createMapImage(String mimeType,
Map<String,String> parameters)
Creates the map image.
|
static BufferedImage |
createMapImage(String outputFormat,
String bbox,
String width,
String height,
String[] geoservers,
String[] layers,
String[] styles,
String[] opacities,
String[] cqlfilters,
String[] gsrefs)
Creates the map image.
|
static BufferedImage |
createMapImage(String outputFormat,
String bbox,
String width,
String height,
String[] wmsServices,
String[] layers,
String[] styles,
String[] opacities,
String[] cqlfilters,
String[] gsrefs,
String[] srs,
String[] crs,
String[] formats,
String[] wmsServerVersions,
String[] wmsNonStandardParameters)
Creates the map image.
|
static String |
createWmsRequest(WmsRequest request)
Added by Francesco M.
|
static String |
getOutputExtension(String outputFormat)
Gets the output extension.
|
static void |
main(String[] args)
The main method.
|
static String[] |
splitParameter(javax.servlet.http.HttpServletRequest request,
String paramName)
Split parameter.
|
static String[] |
splitParameter(String values,
String paramName)
Split parameter.
|
static BufferedImage |
toRGB(BufferedImage image)
Added by Francesco M.
|
public static BufferedImage createMapImage(String outputFormat, String bbox, String width, String height, String[] geoservers, String[] layers, String[] styles, String[] opacities, String[] cqlfilters, String[] gsrefs) throws IOException
outputFormat - the output formatbbox - the bboxwidth - the widthheight - the heightgeoservers - the geoserverslayers - the layersstyles - the stylesopacities - the opacitiescqlfilters - the cqlfiltersgsrefs - the gsrefsIOException - Signals that an I/O exception has occurred.public static BufferedImage createMapImage(String outputFormat, String bbox, String width, String height, String[] wmsServices, String[] layers, String[] styles, String[] opacities, String[] cqlfilters, String[] gsrefs, String[] srs, String[] crs, String[] formats, String[] wmsServerVersions, String[] wmsNonStandardParameters) throws IOException
outputFormat - the output formatbbox - the bboxwidth - the widthheight - the heightwmsServices - the wms serviceslayers - the layersstyles - the stylesopacities - the opacitiescqlfilters - the cqlfiltersgsrefs - the gsrefssrs - the srscrs - the crsformats - the formatswmsServerVersions - the wms server versionswmsNonStandardParameters - key1=value1&key2=value2...keyN=valueN of wms non-standard parametersIOException - Signals that an I/O exception has occurred.public static String createWmsRequest(WmsRequest request) throws Exception
request - the requestException - the exceptionpublic static BufferedImage toRGB(BufferedImage image)
image - the imagepublic static String getOutputExtension(String outputFormat)
outputFormat - the output formatpublic static void main(String[] args)
args - the argumentspublic static String[] splitParameter(javax.servlet.http.HttpServletRequest request, String paramName)
request - the requestparamName - the param namepublic static String[] splitParameter(String values, String paramName)
values - the valuesparamName - the param nameCopyright © 2016. All Rights Reserved.