annotate flys-client/src/main/java/de/intevation/flys/client/server/MapInfoServiceImpl.java @ 4697:52068f1231da

Fixed NPE in empty style editor window.
author Raimund Renkert <rrenkert@intevation.de>
date Mon, 17 Dec 2012 17:54:26 +0100
parents 02cf2b1dff84
children 5014a84c0c7d
rev   line source
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
1 package de.intevation.flys.client.server;
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
2
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
3 import com.google.gwt.user.server.rpc.RemoteServiceServlet;
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
4
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
5 import de.intevation.artifacts.common.utils.XMLUtils;
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
6 import de.intevation.artifacts.common.utils.XMLUtils.ElementCreator;
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
7 import de.intevation.artifacts.httpclient.exceptions.ConnectionException;
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
8 import de.intevation.artifacts.httpclient.http.HttpClient;
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
9 import de.intevation.artifacts.httpclient.http.HttpClientImpl;
4632
02cf2b1dff84 Make floodmap riveraxis layer name configurable.
Christian Lins <christian.lins@intevation.de>
parents: 1425
diff changeset
10 import de.intevation.flys.client.client.services.MapInfoService;
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
11 import de.intevation.flys.client.shared.exceptions.ServerException;
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
12 import de.intevation.flys.client.shared.model.BBox;
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
13 import de.intevation.flys.client.shared.model.MapInfo;
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
14
4632
02cf2b1dff84 Make floodmap riveraxis layer name configurable.
Christian Lins <christian.lins@intevation.de>
parents: 1425
diff changeset
15 import org.apache.log4j.Logger;
02cf2b1dff84 Make floodmap riveraxis layer name configurable.
Christian Lins <christian.lins@intevation.de>
parents: 1425
diff changeset
16 import org.w3c.dom.Document;
02cf2b1dff84 Make floodmap riveraxis layer name configurable.
Christian Lins <christian.lins@intevation.de>
parents: 1425
diff changeset
17 import org.w3c.dom.Element;
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
18
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
19
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
20 /**
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
21 * This service fetches a document that contains meta information for a specific
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
22 * chart.
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
23 *
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
24 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
25 */
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
26 public class MapInfoServiceImpl
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
27 extends RemoteServiceServlet
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
28 implements MapInfoService
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
29 {
1367
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 828
diff changeset
30 private static final Logger logger =
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 828
diff changeset
31 Logger.getLogger(MapInfoServiceImpl.class);
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 828
diff changeset
32
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 828
diff changeset
33
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
34 public static final String XPATH_RIVER =
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
35 "/mapinfo/river/@name";
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
36
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
37 public static final String XPATH_SRID =
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
38 "/mapinfo/river/srid/@value";
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
39
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
40 public static final String XPATH_BBOX =
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
41 "/mapinfo/river/bbox/@value";
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
42
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
43 public static final String XPATH_RIVER_WMS =
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
44 "/mapinfo/river/river-wms/@url";
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
45
4632
02cf2b1dff84 Make floodmap riveraxis layer name configurable.
Christian Lins <christian.lins@intevation.de>
parents: 1425
diff changeset
46 public static final String XPATH_RIVER_WMS_LAYERS =
02cf2b1dff84 Make floodmap riveraxis layer name configurable.
Christian Lins <christian.lins@intevation.de>
parents: 1425
diff changeset
47 "/mapinfo/river/river-wms/@layers";
02cf2b1dff84 Make floodmap riveraxis layer name configurable.
Christian Lins <christian.lins@intevation.de>
parents: 1425
diff changeset
48
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
49 public static final String XPATH_WMS_URL =
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
50 "/mapinfo/river/background-wms/@url";
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
51
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
52 public static final String XPATH_WMS_LAYERS =
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
53 "/mapinfo/river/background-wms/@layers";
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
54
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
55 public static final String ERROR_NO_MAPINFO_FOUND =
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
56 "mapinfo_service_no_result";
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
57
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
58
4632
02cf2b1dff84 Make floodmap riveraxis layer name configurable.
Christian Lins <christian.lins@intevation.de>
parents: 1425
diff changeset
59 @Override
1425
bc06a671ef60 Removed the URL parameter from service calls. The service
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1367
diff changeset
60 public MapInfo getMapInfo(String locale, String river)
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
61 throws ServerException
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
62 {
1367
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 828
diff changeset
63 logger.info("MapInfoServiceImpl.getMapInfo");
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
64
1425
bc06a671ef60 Removed the URL parameter from service calls. The service
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1367
diff changeset
65 String url = getServletContext().getInitParameter("server-url");
bc06a671ef60 Removed the URL parameter from service calls. The service
Raimund Renkert <raimund.renkert@intevation.de>
parents: 1367
diff changeset
66
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
67 Document request = getRequestDocument(river);;
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
68
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
69 HttpClient client = new HttpClientImpl(url, locale);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
70
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
71 try {
1367
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 828
diff changeset
72 logger.debug("MapInfoServiceImpl.callService");
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
73 Document result = client.callService(url, "mapinfo", request);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
74
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
75 if (result == null) {
1367
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 828
diff changeset
76 logger.warn("MapInfo service returned no result.");
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
77 throw new ServerException(ERROR_NO_MAPINFO_FOUND);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
78 }
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
79
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
80 return getMapInfo(result);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
81 }
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
82 catch (ConnectionException ce) {
1367
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 828
diff changeset
83 logger.error(ce, ce);
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
84 }
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
85
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
86 throw new ServerException(ERROR_NO_MAPINFO_FOUND);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
87 }
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
88
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
89
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
90 public static Document getRequestDocument(String rivername) {
1367
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 828
diff changeset
91 logger.debug("MapInfoServiceImpl.getRequestDocument");
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
92
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
93 Document request = XMLUtils.newDocument();
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
94 ElementCreator cr = new ElementCreator(request, null, null);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
95
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
96 Element root = cr.create("mapinfo");
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
97 Element river = cr.create("river");
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
98
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
99 river.setTextContent(rivername);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
100
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
101 request.appendChild(root);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
102 root.appendChild(river);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
103
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
104 return request;
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
105 }
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
106
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
107
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
108 public static MapInfo getMapInfo(Document result) {
1367
ab8eb2f544f2 Replaced stdout and stderr logging with log4j loggers in server classes.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 828
diff changeset
109 logger.debug("MapInfoServiceImpl.getMapInfo");
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
110
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
111 String river = XMLUtils.xpathString(result, XPATH_RIVER, null);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
112 String sridStr = XMLUtils.xpathString(result, XPATH_SRID, null);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
113 String bboxS = XMLUtils.xpathString(result, XPATH_BBOX, null);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
114 BBox bbox = BBox.getBBoxFromString(bboxS);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
115
4632
02cf2b1dff84 Make floodmap riveraxis layer name configurable.
Christian Lins <christian.lins@intevation.de>
parents: 1425
diff changeset
116 String riverWMS = XMLUtils.xpathString(result, XPATH_RIVER_WMS, null);
02cf2b1dff84 Make floodmap riveraxis layer name configurable.
Christian Lins <christian.lins@intevation.de>
parents: 1425
diff changeset
117 String riverLayers = XMLUtils.xpathString(result, XPATH_RIVER_WMS_LAYERS, null);
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
118 String wmsURL = XMLUtils.xpathString(result, XPATH_WMS_URL, null);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
119 String wmsLayers = XMLUtils.xpathString(result, XPATH_WMS_LAYERS, null);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
120
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
121 int srid = 4326;
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
122
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
123 try {
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
124 srid = Integer.parseInt(sridStr);
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
125 }
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
126 catch (NumberFormatException nfe) {
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
127 // do nothing
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
128 }
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
129
4632
02cf2b1dff84 Make floodmap riveraxis layer name configurable.
Christian Lins <christian.lins@intevation.de>
parents: 1425
diff changeset
130 return new MapInfo(river, srid, bbox, riverWMS, riverLayers, wmsURL, wmsLayers);
828
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
131 }
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
132 }
910b03de6857 Added a service to get some basic spatial information used for map creation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
133 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org