Strabon

changeset 1381:43807601f063

missed a place that used hardcoded EPSG URIs
author Babis Nikolaou <charnik@di.uoa.gr>
date Wed Sep 17 12:07:43 2014 +0300 (2014-09-17)
parents 00fab406f0d6
children a206d4d3281c
files evaluation/src/main/java/org/openrdf/query/algebra/evaluation/iterator/StSPARQLGroupIterator.java
line diff
     1.1 --- a/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/iterator/StSPARQLGroupIterator.java	Wed Sep 17 11:53:40 2014 +0300
     1.2 +++ b/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/iterator/StSPARQLGroupIterator.java	Wed Sep 17 12:07:43 2014 +0300
     1.3 @@ -52,6 +52,7 @@
     1.4  import org.openrdf.query.algebra.evaluation.ValueExprEvaluationException;
     1.5  import org.openrdf.query.algebra.evaluation.function.Function;
     1.6  import org.openrdf.query.algebra.evaluation.function.FunctionRegistry;
     1.7 +import org.openrdf.query.algebra.evaluation.function.spatial.AbstractWKT;
     1.8  import org.openrdf.query.algebra.evaluation.function.spatial.StrabonPolyhedron;
     1.9  import org.openrdf.query.algebra.evaluation.function.spatial.stsparql.aggregate.ExtentFunc;
    1.10  import org.openrdf.query.algebra.evaluation.function.spatial.stsparql.construct.BoundaryFunc;
    1.11 @@ -356,8 +357,8 @@
    1.12  				}
    1.13  				if (val != null) {
    1.14  					if(val instanceof StrabonPolyhedron)
    1.15 -					{
    1.16 -						String label = val.toString()+";http://www.opengis.net/def/crs/EPSG/0/"+((StrabonPolyhedron)val).getGeometry().getSRID();
    1.17 +					{ // TODO FIXME why we assume here strdf:WKT? Can we generalize?
    1.18 +						String label = val.toString() + ";" + AbstractWKT.getURI_forSRID(((StrabonPolyhedron)val).getGeometry().getSRID());
    1.19  						Literal wkt = new LiteralImpl(label,new URIImpl(GeoConstants.WKT));
    1.20  						sol.setBinding(name,wkt);
    1.21  					}