Mercurial > dive4elements > gnv-client
diff gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileMeshCrossOutputState.java @ 528:44415ae01ddb
Fixed issue gnv/issue159
gnv-artifacts/trunk@624 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 25 Jan 2010 18:25:19 +0000 |
parents | 4e347624ee7c |
children | 9a828e5a2390 |
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileMeshCrossOutputState.java Mon Jan 25 17:06:01 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileMeshCrossOutputState.java Mon Jan 25 18:25:19 2010 +0000 @@ -1,6 +1,3 @@ -/** - * - */ package de.intevation.gnv.state.profile.horizontal; import com.vividsolutions.jts.geom.Coordinate; @@ -54,20 +51,20 @@ * @author Ingo Weinzierl (iweinzierl@intevation.de) * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) */ -public class HorizontalProfileMeshCrossOutputState extends - HorizontalProfileOutputState { +public class HorizontalProfileMeshCrossOutputState +extends HorizontalProfileOutputState +{ - /** - * - */ + public static final boolean USE_INDEX_BUFFER = + Boolean.getBoolean("gnv.horizontal.profile.mesh.cross.index.buffer"); + private static final long serialVersionUID = 2205958041745637263L; /** * the logger, used to log exceptions and additonaly information */ - private static Logger log = - Logger.getLogger(HorizontalProfileMeshCrossOutputState.class); - + private static Logger log = Logger.getLogger( + HorizontalProfileMeshCrossOutputState.class); private String ijkQueryID = null; @@ -178,12 +175,13 @@ } try { - String additionWhere = - WKTUtils.worldCoordinatesToIndex( + String additionWhere = USE_INDEX_BUFFER + ? WKTUtils.worldCoordinatesToIndex( coords, result, meshId.getValue(), - ijkQueryID); + ijkQueryID) + : WKTUtils.TRUE_EXPRESSION; String[] addedFilterValues = StringUtils.append( generateFilterValuesFromInputData(),