Strabon

changeset 923:0189a451757d

default CRS for GeoSPARQL geometries should be http://www.opengis.net/def/crs/OGC/1.3/CRS84 (or EPSG:3857 -- not very sure for this srid though)
this changeset fixes bug #31
author Babis Nikolaou <charnik@di.uoa.gr>
date Mon Mar 25 01:43:35 2013 +0200 (2013-03-25)
parents 4ff3e6717a62
children a4e8a499ecfb
files evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/AbstractWKT.java
line diff
     1.1 --- a/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/AbstractWKT.java	Mon Mar 25 01:34:13 2013 +0200
     1.2 +++ b/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/AbstractWKT.java	Mon Mar 25 01:43:35 2013 +0200
     1.3 @@ -92,7 +92,7 @@
     1.4  	private void parseWKTLITERAL(String literalValue) {
     1.5  		wkt = literalValue.trim();
     1.6  		// FIXME: the default value for wktLiteral
     1.7 -		srid = GeoConstants.defaultSRID;
     1.8 +		srid = GeoConstants.WGS84_LON_LAT_SRID;
     1.9  		
    1.10  		if (wkt.length() == 0) { // empty geometry
    1.11  			wkt = EMPTY_GEOM;
    1.12 @@ -102,6 +102,7 @@
    1.13  			int uriIndx = wkt.indexOf('>');
    1.14  			URI crs = URI.create(wkt.substring(1, uriIndx));
    1.15  			
    1.16 +			// FIXME: handle invalid URIs
    1.17  			// FIXME: get the SRID for crs! HOW??
    1.18  			
    1.19  			// trim spaces after URI and get the WKT value