Mercurial > dive4elements > gnv-client
changeset 392:1b8fd2635ce4
Added wkt polygon to test the "Horizontalschnitt"
gnv/trunk@535 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 13 Jan 2010 06:51:52 +0000 |
parents | ee8003fffc71 |
children | d812c5b62eb4 |
files | gnv/ChangeLog gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl gnv/src/main/webapp/WEB-INF/jsp/mainlayout.jsp |
diffstat | 3 files changed, 55 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gnv/ChangeLog Sat Jan 09 17:02:03 2010 +0000 +++ b/gnv/ChangeLog Wed Jan 13 06:51:52 2010 +0000 @@ -1,3 +1,10 @@ +2009-01-13 Sascha L. Teichmann <sascha.teichmann@intevation.de> + + * src/main/webapp/WEB-INF/jsp/mainlayout.jsp, + src/main/webapp/WEB-INF/config/templates/describe-ui.xsl: + Added demo wkt polygon to test the "Horizontalschitt". + Remove this when we have the GIS interface. + 2010-01-09 Ingo Weinzierl <ingo.weinzierl@intevation.de> * src/main/java/de/intevation/gnv/artifactdatabase/client/DefaultArtifactDatabaseClient.java:
--- a/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Sat Jan 09 17:02:03 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/config/templates/describe-ui.xsl Wed Jan 13 06:51:52 2010 +0000 @@ -40,9 +40,15 @@ <xsl:variable name="inputValue" select="*[local-name() = 'value']"/> <xsl:variable name="inputName" select="@ref"/> - <xsl:if test="$inputName = 'mesh_linestring'"> - <a href="javascript:copy_demo_wkt_line();"><xsl:text>Beispiel WKT-Linestring einfügen:</xsl:text></a><br/> - </xsl:if> + <!-- TODO: Remove this when we have the GIS interface. (slt) --> + <xsl:choose> + <xsl:when test="$inputName = 'mesh_linestring'"> + <a href="javascript:copy_demo_wkt_line();"><xsl:text>Beispiel WKT-Linestring einfügen:</xsl:text></a><br/> + </xsl:when> + <xsl:when test="$inputName = 'mesh_polygon'"> + <a href="javascript:copy_demo_wkt_polygon();"><xsl:text>Beispiel WKT-Linestring einfügen:</xsl:text></a><br/> + </xsl:when> + </xsl:choose> <xsl:choose> <xsl:when test="*[local-name() = 'label']!= ''">
--- a/gnv/src/main/webapp/WEB-INF/jsp/mainlayout.jsp Sat Jan 09 17:02:03 2010 +0000 +++ b/gnv/src/main/webapp/WEB-INF/jsp/mainlayout.jsp Wed Jan 13 06:51:52 2010 +0000 @@ -28,6 +28,45 @@ "20.6250 59.0349, " + "28.1250 60.2640)"; } + function copy_demo_wkt_polygon() { + document.getElementById('mesh_linestring').value = +"POLYGON ((" + +" 3.619257904890151 60.124073114994786," + +" -0.0100024331643465 58.22749190607598," + +" 0.0602413153141276 54.73871906497843," + +" 1.0436537940127657 53.33384409540895," + +" 2.2612121009729846 52.13970037127489," + +" 3.619257904890151 52.116285788448735," + +" 4.789987046198053 53.544575340844375," + +" 6.358764095550643 54.15335449432448," + +" 8.021199476207865 54.10652532867217," + +" 7.904126562077074 55.62847321237244," + +" 8.021199476207865 57.22066484455119," + +" 9.496318194255823 57.478225255638925," + +" 9.941195267952825 57.876273163683614," + +" 10.877778580999147 57.73578566672666," + +" 10.760705666868358 57.05676276476808," + +" 10.526559838606776 56.75237318802803," + +" 11.228997323391518 56.28408153150487," + +" 10.620218169911409 55.815789874981704," + +" 11.346070237522309 55.2070107215016," + +" 12.235824384916315 55.97969195476481," + +" 12.306068133394788 56.61188569107108," + +" 11.55680148295773 57.73578566672666," + +" 10.924607746651462 58.64895439694683," + +" 10.47973067295446 58.906514808034565," + +" 9.777293188169718 58.57871064846835," + +" 8.466076549904868 57.85285858085746," + +" 7.014372414683068 57.45481067281277," + +" 5.937301604679798 58.04017524346672," + +" 4.930474543155002 59.11724605346999," + +" 4.602670383588789 59.70261062412394," + +" 4.5324266351103155 59.91334186955937," + +" 4.321695389674892 59.889927286733204," + +" 4.064134978587155 59.81968353825473," + +" 3.619257904890151 60.10065853216863," + +" 3.619257904890151 60.124073114994786))"; + } </script> </head>