Strabon

changeset 42:e21067f0e959

Slightly altered implementation of strdf:equals. No longer using '='. ST_Equals from this point on
author Manos Karpathiotakis <mk@di.uoa.gr>
date Thu Mar 08 19:59:26 2012 +0200 (2012-03-08)
parents 307d80c03b27
children 07eaeca98f59
files postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISQueryBuilder.java
line diff
     1.1 --- a/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISQueryBuilder.java	Thu Mar 08 19:28:20 2012 +0200
     1.2 +++ b/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISQueryBuilder.java	Thu Mar 08 19:59:26 2012 +0200
     1.3 @@ -112,6 +112,7 @@
     1.4  		ST_CoveredBy, 
     1.5  		ST_Overlaps,
     1.6  		ST_Intersects,
     1.7 +		ST_Equals,
     1.8  		ST_Relate, 
     1.9  		//Spatial Constructs - Binary
    1.10  		ST_Union, 
    1.11 @@ -328,7 +329,7 @@
    1.12  	protected void append(GeneralDBSqlEqualsSpatial expr, GeneralDBSqlExprBuilder filter)
    1.13  			throws UnsupportedRdbmsOperatorException {
    1.14  
    1.15 -		appendStSPARQLSpatialOperand(expr, filter, SpatialOperandsPostGIS.equals);
    1.16 +		appendGeneralDBSpatialFunctionBinary(expr, filter, SpatialFunctionsPostGIS.ST_Equals);
    1.17  	}
    1.18  
    1.19  	@Override
    1.20 @@ -1089,6 +1090,7 @@
    1.21  			case ST_CoveredBy: filter.appendFunction("ST_CoveredBy"); break;
    1.22  			case ST_Overlaps: filter.appendFunction("ST_Overlaps"); break;
    1.23  			case ST_Intersects: filter.appendFunction("ST_Intersects"); break;
    1.24 +			case ST_Equals: filter.appendFunction("ST_Equals"); break;
    1.25  			}
    1.26  			filter.openBracket();
    1.27  			if(expr.getLeftArg() instanceof GeneralDBStringValue)