Strabon

changeset 461:77cfd388d706

My bad. Fixed issue with CRS (again) - had forgotten to clone behavior for both left and right arguments
author Manos Karpathiotakis <mk@di.uoa.gr>
date Thu Jul 19 17:22:27 2012 +0300 (2012-07-19)
parents a85f0f7cb00a
children 38ccf637c762 515413720e57
files generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java
line diff
     1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java	Thu Jul 19 16:58:41 2012 +0300
     1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/evaluation/GeneralDBEvaluation.java	Thu Jul 19 17:22:27 2012 +0300
     1.3 @@ -296,6 +296,18 @@
     1.4  					 * in order to have them appear in Select Clause along with the appropriate datatype.
     1.5  					 */
     1.6  					leftGeom = new StrabonPolyhedron(((Literal) leftResult).getLabel()).getGeometry();
     1.7 +					int sridPosition = ((Literal) leftResult).getLabel().indexOf(';');
     1.8 +					//Default case
     1.9 +					if(sridPosition == -1)
    1.10 +					{
    1.11 +						leftGeom.setSRID(GeoConstants.defaultSRID);
    1.12 +					}
    1.13 +					else
    1.14 +					{
    1.15 +						sridPosition = ((Literal) leftResult).getLabel().lastIndexOf('/');
    1.16 +						int srid = Integer.parseInt(((Literal) leftResult).getLabel().substring(sridPosition+1));
    1.17 +						leftGeom.setSRID(srid);
    1.18 +					}
    1.19  				}
    1.20  				else
    1.21  				{	//SHOULD NEVER REACH THIS CASE!