From: <svn...@os...> - 2009-11-30 17:23:01
|
Author: jdeolive Date: 2009-11-30 12:22:44 -0500 (Mon, 30 Nov 2009) New Revision: 34565 Modified: branches/2.6.x/modules/plugin/jdbc/jdbc-h2/src/main/java/org/geotools/data/h2/H2Dialect.java Log: changed geometryType constraint to use Geometries enumeration Modified: branches/2.6.x/modules/plugin/jdbc/jdbc-h2/src/main/java/org/geotools/data/h2/H2Dialect.java =================================================================== --- branches/2.6.x/modules/plugin/jdbc/jdbc-h2/src/main/java/org/geotools/data/h2/H2Dialect.java 2009-11-30 16:08:45 UTC (rev 34564) +++ branches/2.6.x/modules/plugin/jdbc/jdbc-h2/src/main/java/org/geotools/data/h2/H2Dialect.java 2009-11-30 17:22:44 UTC (rev 34565) @@ -27,6 +27,7 @@ import java.sql.Types; import java.util.Map; +import org.geotools.geometry.jts.Geometries; import org.geotools.jdbc.JDBCDataStore; import org.geotools.jdbc.SQLDialect; import org.opengis.feature.simple.SimpleFeatureType; @@ -191,7 +192,7 @@ sql.append( " IS NULL OR"); sql.append( " GeometryType("); encodeColumnName( propertyName, sql ); - sql.append( ") = '").append( binding.getSimpleName().toUpperCase() ) + sql.append( ") = '").append( Geometries.getForBinding(binding).getName() ) .append( "'"); LOGGER.fine( sql.toString() ); |