Strabon

changeset 1244:375c415ad894

#47 fixed by adding the srid to the string value of the polyhedron
in XML and TSV writers.
author Stella Giannakopoulou <sgian@di.uoa.gr>
date Thu Aug 01 15:32:49 2013 +0300 (2013-08-01)
parents 9b9129ab812e
children b0b702ec95b4
files generaldb/src/main/java/org/openrdf/sail/generaldb/model/GeneralDBPolyhedron.java resultio-spatial/text/src/main/java/org/openrdf/query/resultio/text/stSPARQLResultsTSVWriter.java
line diff
     1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/model/GeneralDBPolyhedron.java	Wed Jul 31 17:03:42 2013 +0300
     1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/model/GeneralDBPolyhedron.java	Thu Aug 01 15:32:49 2013 +0300
     1.3 @@ -111,7 +111,7 @@
     1.4  
     1.5  
     1.6  	public String stringValue() {
     1.7 -		return new String(this.polyhedronStringRep);
     1.8 +		return new String(this.polyhedronStringRep)+";http://www.opengis.net/def/crs/EPSG/0/"+this.getPolyhedron().getGeometry().getSRID();
     1.9  	}
    1.10  
    1.11  	@Override
     2.1 --- a/resultio-spatial/text/src/main/java/org/openrdf/query/resultio/text/stSPARQLResultsTSVWriter.java	Wed Jul 31 17:03:42 2013 +0300
     2.2 +++ b/resultio-spatial/text/src/main/java/org/openrdf/query/resultio/text/stSPARQLResultsTSVWriter.java	Thu Aug 01 15:32:49 2013 +0300
     2.3 @@ -33,7 +33,7 @@
     2.4  			// catch the spatial case and create a new literal
     2.5  			// constructing a new literal is the only way if we want to reuse the {@link #writeValue(Value)} method
     2.6  			GeneralDBPolyhedron dbpolyhedron = (GeneralDBPolyhedron) val;
     2.7 -			val = new LiteralImpl(dbpolyhedron.getPolyhedronStringRep(), dbpolyhedron.getDatatype());
     2.8 +			val = new LiteralImpl(dbpolyhedron.getPolyhedronStringRep()+";http://www.opengis.net/def/crs/EPSG/0/"+dbpolyhedron.getPolyhedron().getGeometry().getSRID(), dbpolyhedron.getDatatype());
     2.9  		}
    2.10  		
    2.11  		// write value