comparison 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
comparison
equal deleted inserted replaced
739:a40a6de70459 740:0563389138bb
362 362
363 public static String toText(String wkt) { 363 public static String toText(String wkt) {
364 return toText(Locale.getDefault(), wkt); 364 return toText(Locale.getDefault(), wkt);
365 } 365 }
366 366
367 public static String toText(Point p) {
368 return toText(Locale.getDefault(), toWKT(p.getCoordinate()));
369 }
370
371 public static String toText(Locale locale, Point p) {
372 return toText(locale, toWKT(p.getCoordinate()));
373 }
374
367 public static String toText(Locale locale, String wkt) { 375 public static String toText(Locale locale, String wkt) {
368 String formattedCoordinate = null; 376 String formattedCoordinate = null;
369 try { 377 try {
370 Point p = (Point)new WKTReader().read(wkt); 378 Point p = (Point)new WKTReader().read(wkt);
371 double lat = p.getY(); 379 double lat = p.getY();

http://dive4elements.wald.intevation.org