comparison gnv-artifacts/src/main/java/de/intevation/gnv/utils/WKTUtils.java @ 482:64e65daa65e9

Fixed some bugs with calculating "Horizontalschnitte". gnv-artifacts/trunk@557 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 17 Jan 2010 21:26:21 +0000
parents 211cad2fb5ba
children 45be952a3215
comparison
equal deleted inserted replaced
481:20dde2b6f1b5 482:64e65daa65e9
58 return false; 58 return false;
59 } 59 }
60 60
61 public static Coordinate toCoordinate(String shape) { 61 public static Coordinate toCoordinate(String shape) {
62 try { 62 try {
63 return ((Point)(new WKTReader().read(shape))).getCoordinate(); 63 return shape != null
64 ? ((Point)(new WKTReader().read(shape))).getCoordinate()
65 : null;
64 } 66 }
65 catch (ParseException pe) { 67 catch (ParseException pe) {
66 log.error(pe); 68 log.error(pe);
67 } 69 }
68 catch (ClassCastException cce) { 70 catch (ClassCastException cce) {

http://dive4elements.wald.intevation.org