Ticket #47 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago


Reported by: psmeros Owned by: stella
Priority: major Milestone:
Component: resultio Version:
Keywords: Cc:


XMLWriter (and TSVWriter) return geometries without the suffix ";SRID".



<http://example.org#A> <http://example.org#hasGeometry> "Polygon((0 0, 1 0, 1 1, 0 1, 0 0));http://www.opengis.net/def/crs/EPSG/0/2100"<http://strdf.di.uoa.gr/ontology#WKT> .
<http://example.org#B> <http://example.org#hasGeometry> "Polygon((0 0, 2 0, 2 2, 0 2 , 0 0));http://www.opengis.net/def/crs/EPSG/0/2100"<http://strdf.di.uoa.gr/ontology#WKT> .


select (strdf:buffer(?g, 0, ogc:degree) as ?buffer)

?x ex:hasGeometry ?g .


Output Format:
Check the difference between XML and HTML.

Change History

comment:1 Changed 4 years ago by charnik

I am not sure whether this is a bug in the XMLWriter or a bug in the evaluation module of Strabon (postgis) at the time of construction of the geometry literal.
In a recent bug (changeset 1203:5fe95b6e25fc) I saw that construction of such geometries was assuming 4326 in every case. I somehow fixed it by looking whether the coordinate reference system was also present in the WKT literal coming from the database. If not found, only then 4326 is assumed. For this, we should construct WKT literals by using the AbstractWKT constructor and not any other method that is prone to errors.

Could you check whether this is the case for strdf:buffer as well?

comment:2 Changed 4 years ago by stella

  • Owner changed from pyravlos-team to stella
  • Status changed from new to assigned

comment:3 Changed 4 years ago by stella

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.