comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/WMSQPSArtifact.java @ 1845:06c157848c8f

Made the floodmap compatible with an Oracle database. flys-artifacts/trunk@3189 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 09 Nov 2011 10:48:51 +0000
parents 729ba79e94a0
children f5af3adb3b95
comparison
equal deleted inserted replaced
1844:06cf1009301d 1845:06c157848c8f
148 return "river_id=" + String.valueOf(getRiverId()); 148 return "river_id=" + String.valueOf(getRiverId());
149 } 149 }
150 150
151 @Override 151 @Override
152 protected String getDataString() { 152 protected String getDataString() {
153 // TODO SRID 153 String srid = getSrid();
154 return "geom FROM cross_section_tracks " + 154
155 "USING UNIQUE id USING SRID 31466"; 155 if (FLYSUtils.isUsingOracle()) {
156 return "geom FROM cross_section_tracks USING SRID " + srid;
157 }
158 else {
159 return "geom FROM cross_section_tracks " +
160 "USING UNIQUE id USING SRID " + srid;
161 }
156 } 162 }
157 163
158 @Override 164 @Override
159 protected String getGeometryType() { 165 protected String getGeometryType() {
160 return "LINE"; 166 return "LINE";

http://dive4elements.wald.intevation.org