Strabon

changeset 51:24eb0fafb8dd

Fixed issue with SRID uri returned
author Manos Karpathiotakis <mk@di.uoa.gr>
date Wed Mar 14 17:00:55 2012 +0200 (2012-03-14)
parents 1fffa78c6e58
children b678ff809288
files evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/StrabonPolyhedron.java
line diff
     1.1 --- a/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/StrabonPolyhedron.java	Wed Mar 14 15:49:58 2012 +0200
     1.2 +++ b/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/StrabonPolyhedron.java	Wed Mar 14 17:00:55 2012 +0200
     1.3 @@ -189,6 +189,7 @@
     1.4  
     1.5  	public StrabonPolyhedron(Geometry geo) throws Exception {
     1.6  		this.geometry = new StrabonPolyhedron(geo, 1).geometry;
     1.7 +		this.geometry.setSRID(geo.getSRID());
     1.8  	}
     1.9  
    1.10  	public StrabonPolyhedron(Geometry geo, int algorithm) throws Exception {
    1.11 @@ -715,7 +716,7 @@
    1.12  		Geometry x = convertSRID(B.getGeometry(), sourceSRID, targetSRID);
    1.13  
    1.14  		poly.geometry = A.geometry.union(x);
    1.15 -
    1.16 +		poly.geometry.setSRID(targetSRID);
    1.17  		return poly;
    1.18  	}
    1.19  
    1.20 @@ -753,7 +754,7 @@
    1.21  		int sourceSRID = B.getGeometry().getSRID();
    1.22  		Geometry x = convertSRID(B.getGeometry(), sourceSRID, targetSRID);
    1.23  		Geometry geo = A.geometry.intersection(x);
    1.24 -
    1.25 +		geo.setSRID(targetSRID);
    1.26  		return new StrabonPolyhedron(geo);
    1.27  	}
    1.28  
    1.29 @@ -765,7 +766,7 @@
    1.30  		Geometry x = convertSRID(B.getGeometry(), sourceSRID, targetSRID);
    1.31  
    1.32  		poly.geometry = A.geometry.difference(x);
    1.33 -
    1.34 +		poly.geometry.setSRID(targetSRID);
    1.35  		return poly;
    1.36  	}
    1.37  
    1.38 @@ -775,7 +776,7 @@
    1.39  		int sourceSRID = B.getGeometry().getSRID();
    1.40  		Geometry x = convertSRID(B.getGeometry(), sourceSRID, targetSRID);
    1.41  		poly.geometry = A.geometry.symDifference(x);
    1.42 -
    1.43 +		poly.geometry.setSRID(targetSRID);
    1.44  		return poly;
    1.45  	}
    1.46