Hi Wray,
The project you referenced seems to be a from the original JTS library
[1]. If there is an offical JTS branch/fork that provides support for
SRIDs, we could think about switching to that version.
Best,
Christian
[1] https://github.com/simplegeo/jts
On Tue, Nov 14, 2017 at 12:53 AM, Christian Grün
<christian.gruen@gmail.com> wrote:
> Thanks for the hint! I’ll look at this later this day.
>
>
> Am 14.11.2017 00:51 schrieb "E. Wray Johnson" <wray.johnson@gmail.com>:
>>
>> According to this:
>>
>>
>> https://github.com/B3Partners/jump-b3p/blob/master/src/main/ java/com/vividsolutions/jump/ io/GMLReader.java
>>
>> Around Line 202-218
>>
>> BaseX needs to turn on the capability per line 217-281 (I suggest by
>> default) or allow users to turn it on.
>>
>> On Mon, Nov 13, 2017 at 6:38 PM, Christian Grün
>> <christian.gruen@gmail.com> wrote:
>>>
>>> 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/expath/ns/ Geo.java
>>>
>>>
>>>
>>> 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>
>>>> )
>>>
>>>
>>>
>>
>