Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/utils/ShapeFileWriter.java @ 761:0b1de7e38907
Adjusted mapfile templates for 'Horizontalschnitte' - display DESC column as label in a WMS layer (issue209).
gnv-artifacts/trunk@815 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 22 Mar 2010 11:23:33 +0000 |
parents | f82e57a60124 |
children | 9a828e5a2390 |
comparison
equal
deleted
inserted
replaced
760:f82e57a60124 | 761:0b1de7e38907 |
---|---|
45 ShapeFileWriter.class); | 45 ShapeFileWriter.class); |
46 | 46 |
47 private static NumberFormat format = NumberFormat.getInstance(); | 47 private static NumberFormat format = NumberFormat.getInstance(); |
48 | 48 |
49 public static final int DOUBLE_PRECISION = 3; | 49 public static final int DOUBLE_PRECISION = 3; |
50 | |
51 static { | |
52 format.setMaximumFractionDigits(DOUBLE_PRECISION); | |
53 } | |
50 | 54 |
51 private ShapeFileWriter() { | 55 private ShapeFileWriter() { |
52 } | 56 } |
53 | 57 |
54 public static boolean writeMultiLineStringsToFile( | 58 public static boolean writeMultiLineStringsToFile( |
405 } | 409 } |
406 return 0d; | 410 return 0d; |
407 } | 411 } |
408 | 412 |
409 private static final String value2description(Double value) { | 413 private static final String value2description(Double value) { |
410 format.setMaximumFractionDigits(DOUBLE_PRECISION); | |
411 | |
412 return format.format(value); | 414 return format.format(value); |
413 } | 415 } |
414 } | 416 } |
415 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 417 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |