Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/exports/ShapeDataCollector.java @ 335:e964a3d8f7bc
Some Refactoring work done.
Moved Transition to State
gnv-artifacts/trunk@401 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 08 Dec 2009 08:39:03 +0000 |
parents | 3ea030aafe65 |
children | a0e63136954e |
comparison
equal
deleted
inserted
replaced
334:e37930705daa | 335:e964a3d8f7bc |
---|---|
5 import com.vividsolutions.jts.io.WKTReader; | 5 import com.vividsolutions.jts.io.WKTReader; |
6 import com.vividsolutions.jts.io.ParseException; | 6 import com.vividsolutions.jts.io.ParseException; |
7 import com.vividsolutions.jts.geom.Point; | 7 import com.vividsolutions.jts.geom.Point; |
8 | 8 |
9 import de.intevation.gnv.geobackend.base.Result; | 9 import de.intevation.gnv.geobackend.base.Result; |
10 import de.intevation.gnv.transition.exception.TransitionException; | 10 import de.intevation.gnv.state.exception.StateException; |
11 | 11 |
12 | 12 |
13 /** | 13 /** |
14 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de) | 14 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de) |
15 */ | 15 */ |
23 public ShapeDataCollector(String[] names) { | 23 public ShapeDataCollector(String[] names) { |
24 super(names); | 24 super(names); |
25 } | 25 } |
26 | 26 |
27 public String[] getData(Result result) | 27 public String[] getData(Result result) |
28 throws TransitionException { | 28 throws StateException { |
29 | 29 |
30 if (rd == null) | 30 if (rd == null) |
31 init(result); | 31 init(result); |
32 | 32 |
33 try { | 33 try { |
48 | 48 |
49 return entries; | 49 return entries; |
50 } | 50 } |
51 catch (ParseException pe) { | 51 catch (ParseException pe) { |
52 log.error(pe, pe); | 52 log.error(pe, pe); |
53 throw new TransitionException( | 53 throw new StateException( |
54 "Error occured while parsing a Point from WKT."); | 54 "Error occured while parsing a Point from WKT."); |
55 } | 55 } |
56 } | 56 } |
57 } | 57 } |