diff gnv-artifacts/src/main/java/de/intevation/gnv/utils/WKTUtils.java @ 740:0563389138bb

Changed source of displayed coordinate in 'HorizontalProfil'-charts' subtitle (issue120). gnv-artifacts/trunk@779 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 15 Mar 2010 15:39:59 +0000
parents 4e347624ee7c
children 9a828e5a2390
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/utils/WKTUtils.java	Mon Mar 15 15:26:26 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/utils/WKTUtils.java	Mon Mar 15 15:39:59 2010 +0000
@@ -364,6 +364,14 @@
         return toText(Locale.getDefault(), wkt);
     }
 
+    public static String toText(Point p) {
+        return toText(Locale.getDefault(), toWKT(p.getCoordinate()));
+    }
+
+    public static String toText(Locale locale, Point p) {
+        return toText(locale, toWKT(p.getCoordinate()));
+    }
+
     public static String toText(Locale locale, String wkt) {
         String formattedCoordinate = null;
         try {

http://dive4elements.wald.intevation.org