Strabon

changeset 925:39d271902813

added very very naive CRS to SRID mapping in wktLiteral parsing (addresses bug #31)
author Babis Nikolaou <charnik@di.uoa.gr>
date Mon Mar 25 02:06:00 2013 +0200 (2013-03-25)
parents a4e8a499ecfb
children 667c3e2aa9d4
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:47:02 2013 +0200
     1.2 +++ b/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/AbstractWKT.java	Mon Mar 25 02:06:00 2013 +0200
     1.3 @@ -103,7 +103,14 @@
     1.4  			URI crs = URI.create(wkt.substring(1, uriIndx));
     1.5  			
     1.6  			// FIXME: handle invalid URIs
     1.7 -			// FIXME: get the SRID for crs! HOW??
     1.8 +			// FIXME: get the SRID for crs properly. HOW??
     1.9 +			if (GeoConstants.WGS84_LAT_LON.equals(crs.toString())) {
    1.10 +				srid = GeoConstants.WGS84_LAT_LON_SRID;
    1.11 +				
    1.12 +			} else if (GeoConstants.WGS84_LON_LAT.equals(crs.toString())) {
    1.13 +				srid = GeoConstants.WGS84_LON_LAT_SRID;
    1.14 +				
    1.15 +			}
    1.16  			
    1.17  			// trim spaces after URI and get the WKT value
    1.18  			wkt = wkt.substring(uriIndx + 1).trim();