Mercurial > dive4elements > gnv-client
view gnv/src/main/webapp/WEB-INF/jsp/includes/display_mapviewercall_inc.jsp @ 975:5779220ebb80
Added functionality to read WMS-Capabilities-Documents
gnv/trunk@1145 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 01 Jun 2010 17:40:54 +0000 |
parents | fbbf2ffde11f |
children | 28a0628b11b0 |
line wrap: on
line source
<% String geometry = "POINT (6.3333 56.5)"; String geometrytype = request.getParameter("gt"); if(geometrytype != null){ if (geometrytype.equals("POINT")){ geometry = "POINT (6.3333 56.5)"; }else if (geometrytype.equals("LINESTRING")){ geometry = "LINESTRING (0.4911 56.2489,10.4464 58.1608,12.2321 56.4127,13.1250 54.8832,15.4018 54.5008,19.6875 56.4127,20.6250 59.0349,28.1250 60.2640)"; }else if (geometrytype.equals("POLYGON")){ geometry = "POLYGON ((-1.5763 58.3616, 0.7526 53.8428, 4.2686 53.1972, 7.9217 54.1441, 7.6020 56.2959, 11.5747 57.2857, 0.4788 58.4908, 4.2686 58.8996, 0.0219 58.5768, -1.5763 58.3616))"; } } %> <div id="basefilter" style="left:310px;position:absolute;width:350px"> <form action="<%=response.encodeURL("extcall.do")%>" method="post"> <fieldset> <legend>Kartenviewer Request</legend> <textarea id="mapviewer" class="mapviewer" name="document" rows="25" cols="80"> <?xml version='1.0' encoding='UTF-8'?> <gnviewer> <mapservices> <mapservice id='BSH_IMS_Prediction_Model_Current' type='arcims' url='http://foo.bar.de'> <Modeldata /> <layer id='3' name='Speed Today 00:00 (Surface)'/> <layer id='146' name='Surface Current Day After Tomorrow'> <layer id='207' name='Day After Tomorrow 20:00 (Surface)'> <layer id='208' name='Speed Day After Tomorrow 21:00 (Surface)'/> <layer id='209' name='Speed Day After Tomorrow 20:00 (Surface)'/> </layer> </layer> </mapservice> <mapservice id='BSH_IMS_Marine_Environmental_Monitoring_Network' type='wms' url='http://foo1.bar.de'> <MARNET/> <layer id='26' name='Air'> <layer id='27' name='Temperature'/> </layer> <layer id='9' name='Salinity'> <layer id='10' name='depth: (0m- -6m)'/> </layer> <layer id='13' name='OxygenSaturation'> <layer id='14' name='depth: (0m- -6m)'/> <layer id='15' name='depth: (-6m- -20m)'/> <layer id='16' name='depth: (-20m- -50m)'/> </layer> </mapservice> <mapservice id='BSH_IMS_Sea_Surface_Temperature_Analysis' type='arcims' url='http://foo.bar.de'> <SST/> </mapservice> <mapservice id='BSH_IMS_Prediction_Model_Salinity' type='arcims' url='http://foo.bar.de'> <Modeldata /> </mapservice> <mapservice id='BSH_IMS_CONTIS_Resources' type='arcims' url='http://foo.bar.de'> <Contis /> </mapservice> </mapservices> <location> <srs>EPSG:4324</srs> <data><%=geometry%></data> </location> </gnviewer> </textarea> <input type="submit" name="btClick" value="Ausf�hren" /> </fieldset> </form> </div>