# HG changeset patch # User Tim Englich # Date 1268988107 0 # Node ID fbbf2ffde11fef1d2163661c103f39798d111fa6 # Parent b89b312937723a014d5afa86ead1e185457d2f87 Integrated a Switch will be load different Geometries into the Requestbody of an Mapviewercall. gnv/trunk@797 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r b89b31293772 -r fbbf2ffde11f gnv/ChangeLog --- a/gnv/ChangeLog Wed Mar 17 13:31:38 2010 +0000 +++ b/gnv/ChangeLog Fri Mar 19 08:41:47 2010 +0000 @@ -1,3 +1,12 @@ +2010-03-19 Tim Englich + + * src/main/webapp/WEB-INF/jsp/includes/display_mapviewercall_inc.jsp: + Integrated a Switch will be load different Geometries into the + Requestbody of an Mapviewercall. + You cann add gt=POINT , gt=LINESTRING or gt=POLYGON to the URL to switch + between the different Geometries. + The Values of the Geometries are the same as used in the GUI of the GNV. + 2010-03-17 Ingo Weinzierl Issue208 First steps for exporting artifacts. diff -r b89b31293772 -r fbbf2ffde11f gnv/src/main/webapp/WEB-INF/jsp/includes/display_mapviewercall_inc.jsp --- a/gnv/src/main/webapp/WEB-INF/jsp/includes/display_mapviewercall_inc.jsp Wed Mar 17 13:31:38 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/jsp/includes/display_mapviewercall_inc.jsp Fri Mar 19 08:41:47 2010 +0000 @@ -1,3 +1,17 @@ +<% +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))"; + } +} +%> +
" method="post">
@@ -36,10 +50,13 @@ + + + EPSG:4324 - POINT(8.6 56.0) + <%=geometry%>