Strabon

changeset 1256:481d19701e7d

fixed a bug concerning the srid of constants inside unary constructs
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Fri Aug 02 18:40:39 2013 +0300 (2013-08-02)
parents f116234d150c
children 9ba8e8af9d1a
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	Fri Aug 02 17:30:57 2013 +0300
     1.2 +++ b/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISQueryBuilder.java	Fri Aug 02 18:40:39 2013 +0300
     1.3 @@ -2232,14 +2232,13 @@
     1.4  
     1.5  		filter.closeBracket();
     1.6  		//Used to explicitly include SRID
     1.7 -		if(sridNeeded)
     1.8 -		{	
     1.9 -			if(expr instanceof GeneralDBSqlSpatialConstructUnary && expr.getParentNode() == null)
    1.10 -			{
    1.11 -				filter.appendComma();
    1.12 -				filter.append(sridExpr);
    1.13 -			}
    1.14 +		
    1.15 +		if(expr instanceof GeneralDBSqlSpatialConstructUnary && expr.getParentNode() == null)
    1.16 +		{
    1.17 +			filter.appendComma();
    1.18 +			filter.append(sridExpr);
    1.19  		}
    1.20 +		
    1.21  	}
    1.22  
    1.23  	//Used in all the generaldb boolean spatial functions of the form ST_Function(?GEO1,?GEO2)