The Geo Module is basically a light-weight wrapper for the JTS Topology Suite: geo:srid calls getSRID() (see [1]). Maybe you could ask on the jts mailing list and give us some feedback?
[1] https://github.com/BaseXdb/basex/blob/master/basex-api/src/main/java/org/exp...
Am 14.11.2017 12:23 vorm. schrieb "E. Wray Johnson" <wray.johnson@gmail.com
:
I am sorry, I did not make myself clear. It always returns 0. There is a way to set the spatial reference. Typically with the srsName attribute on the geometry. In this example that would be the gml:Polygon element. However, none of the valid values is recognized by JTS. It is as if the srsName attribute is not getting to JTS.
On Mon, Nov 13, 2017 at 5:41 PM, Christian Grün christian.gruen@gmail.com wrote:
I can’t get the geo:srid() to work. I have tried many combinations of
@srsName values. Can anyone provide examples?
Try e.g. this:
import module namespace geo='http://expath.org/ns/geo'; declare namespace gml='http://www.opengis.net/gml'; geo:srid( gml:Polygon <outerboundaryIs> gml:LinearRing <coordinates>-150,50 -150,60 -125,60 -125,50 -150,50</coordinates> </gml:LinearRing> </outerboundaryIs> </gml:Polygon> )