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>
  )