Strabon

changeset 1351:4c69c17e2fbe

fixed bug #45. https://bug.strabon.di.uoa.gr/ticket/45

In the method appendGeneralDBSpatialFunctionUnary of class PostGISQueryBuilder,
ternary sp. constructs are also taken into account from now on
ChangeLog was also updated accordingly.
author Giannis Vlachopoulos <johnvl@di.uoa.gr>
date Mon Jul 21 12:00:26 2014 +0300 (2014-07-21)
parents 341859a4334f
children 7c0e94008b62
files ChangeLog postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISQueryBuilder.java
line diff
     1.1 --- a/ChangeLog	Fri Jul 18 20:07:30 2014 +0300
     1.2 +++ b/ChangeLog	Mon Jul 21 12:00:26 2014 +0300
     1.3 @@ -2,9 +2,13 @@
     1.4  
     1.5  	* Version 3.2.10 released.
     1.6  
     1.7 +	* Fixed a bug in which Strabon hanged when a unary spatial construct 
     1.8 +	  had a ternary spatial construct as argument. 
     1.9 +	  (bug #45 http://bug.strabon.di.uoa.gr/ticket/45
    1.10 +
    1.11  	* Altered default SRID to GeoSPARQL SRID: Geometries with wktLiteral 
    1.12 -	datatype in SPARQL queries were not interpreted in the correct CRS.
    1.13 -	(bug #44 http://bug.strabon.di.uoa.gr/ticket/44)
    1.14 +	  datatype in SPARQL queries were not interpreted in the correct CRS.
    1.15 +	  (bug #44 http://bug.strabon.di.uoa.gr/ticket/44)
    1.16  
    1.17  	* Fixed a bug in queries that contain variables that exist inside 
    1.18  	  spatial functions in select and do not exist in the where clause 
     2.1 --- a/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISQueryBuilder.java	Fri Jul 18 20:07:30 2014 +0300
     2.2 +++ b/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISQueryBuilder.java	Mon Jul 21 12:00:26 2014 +0300
     2.3 @@ -2139,6 +2139,10 @@
     2.4  						sridNeeded  = false;
     2.5  						break;
     2.6  					}
     2.7 +					else if (tmp instanceof GeneralDBSqlSpatialConstructTriple) {
     2.8 +						//here we consider the case where the current argument is a Spatial Construct Ternary function, to dodge the infinite loop
     2.9 +						child = ((GeneralDBSqlSpatialConstructTriple) tmp).getLeftArg();
    2.10 +					}
    2.11  
    2.12  					tmp = child;
    2.13  					if(tmp instanceof GeneralDBLabelColumn)