Strabon

changeset 41:307d80c03b27

Changed traditional strabon anyInteract operator; it now has the appropriate ST_Intersects functionality
author Manos Karpathiotakis <mk@di.uoa.gr>
date Thu Mar 08 19:28:20 2012 +0200 (2012-03-08)
parents 788b5325ef9e
children e21067f0e959
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	Mon Mar 05 20:36:11 2012 +0200
     1.2 +++ b/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISQueryBuilder.java	Thu Mar 08 19:28:20 2012 +0200
     1.3 @@ -110,7 +110,8 @@
     1.4  		ST_Touches, 
     1.5  		ST_Covers, 
     1.6  		ST_CoveredBy, 
     1.7 -		ST_Overlaps, 
     1.8 +		ST_Overlaps,
     1.9 +		ST_Intersects,
    1.10  		ST_Relate, 
    1.11  		//Spatial Constructs - Binary
    1.12  		ST_Union, 
    1.13 @@ -313,7 +314,7 @@
    1.14  	protected void append(GeneralDBSqlAnyInteract expr, GeneralDBSqlExprBuilder filter)
    1.15  			throws UnsupportedRdbmsOperatorException
    1.16  			{
    1.17 -		appendStSPARQLSpatialOperand(expr, filter, SpatialOperandsPostGIS.anyInteract);
    1.18 +		appendGeneralDBSpatialFunctionBinary(expr, filter, SpatialFunctionsPostGIS.ST_Intersects);
    1.19  			}
    1.20  
    1.21  	@Override
    1.22 @@ -1087,6 +1088,7 @@
    1.23  			case ST_Covers: filter.appendFunction("ST_Covers"); break;
    1.24  			case ST_CoveredBy: filter.appendFunction("ST_CoveredBy"); break;
    1.25  			case ST_Overlaps: filter.appendFunction("ST_Overlaps"); break;
    1.26 +			case ST_Intersects: filter.appendFunction("ST_Intersects"); break;
    1.27  			}
    1.28  			filter.openBracket();
    1.29  			if(expr.getLeftArg() instanceof GeneralDBStringValue)