Spatial Reference not working

Sunday, 12 November 2017 · 8 messages · last reply 19 Nov 2017
EJ
E. Wray Johnson12 Nov 2017 04:38 #
I can’t get the geo:srid() to work. I have tried many combinations of @srsName values. Can anyone provide examples? E. Wray Johnson
CG
Christian Grün13 Nov 2017 23:41 #
Quoted text · E. Wray Johnson · 1 line
> 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>
  )
CG
Christian Grün14 Nov 2017 00:38 #
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 at gmail.com
Quoted text · Christian Grün · 1 line
>:
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.
Quoted text · Christian Grün · 20 lines
On Mon, Nov 13, 2017 at 5:41 PM, Christian Grün <christian.gruen at 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> > ) >
CG
Christian Grünin reply to E. Wray Johnson, 14 Nov 2017, 01:5114 Nov 2017 00:53 #
Thanks for the hint! I’ll look at this later this day.
Quoted text · E. Wray Johnson · 57 lines
Am 14.11.2017 00:51 schrieb "E. Wray Johnson" <wray.johnson at 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 at 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 at 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 at 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> >>> ) >>> >> >> >> >
EJ
E. Wray Johnsonin reply to Christian Grün, 13 Nov 2017, 23:4114 Nov 2017 01:23 #
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.
Quoted text · Christian Grün · 20 lines
On Mon, Nov 13, 2017 at 5:41 PM, Christian Grün <christian.gruen at 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> > ) >
EJ
E. Wray Johnsonin reply to Christian Grün, 14 Nov 2017, 00:3814 Nov 2017 01:51 #
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.
Quoted text · Christian Grün · 44 lines
On Mon, Nov 13, 2017 at 6:38 PM, Christian Grün <christian.gruen at 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 at 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 at 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> >> ) >> > > >
CG
Christian Grünin reply to Christian Grün, 14 Nov 2017, 00:5314 Nov 2017 10:53 #
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
Quoted text · Christian Grün · 63 lines
On Tue, Nov 14, 2017 at 12:53 AM, Christian Grün <christian.gruen at 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 at 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 at 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 at 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 at 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> >>>> ) >>> >>> >>> >> >
EJ
E. Wray Johnson19 Nov 2017 05:14 #
Quoted text · Christian Grün · 85 lines
On Tue, Nov 14, 2017 at 4:53 AM, Christian Grün <christian.gruen at gmail.com> wrote: > 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 at 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 at 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 at 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 at 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 at 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> > >>>> ) > >>> > >>> > >>> > >> > > >

⚡Generated with XQuery