[prev in list] [next in list] [prev in thread] [next in thread]
List: postgis-users
Subject: Re: [postgis-users] Wrong format: PostGIS misses a " " in it's WKT output?
From: Rémi_c <remi.cura () gmail ! com>
Date: 2021-04-26 14:54:15
Message-ID: CAJvUf_udCYCtC3bn9ip_n60cyz3KpYPQgCKyhr6vFR7G8c=1Bg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Thanks @Paul Ramsey <pramsey@cleverelephant.ca> !
Remi
Le ven. 23 avr. 2021 Ã 16:24, Paul Ramsey <pramsey@cleverelephant.ca> a
écrit :
> Since hopefully most parsers will consume either version (and kind of have
> to) just go with emitting whatever makes you feel good, no?
>
> > On Apr 23, 2021, at 1:21 PM, Rémi c <remi.cura@gmail.com> wrote:
> >
> > Hey Paul, great to hear from you!
> > Yeah I agree this is a bit confusing :-/
> >
> > The standards are here, page 54.
> > The interesting line is ```<polygon tagged text> ::= polygon <polygon
> text>```
> > Where `<polygon text>` is then refined into EMPTY or a list of
> linestrings between parenthesis.
> >
> > It looks like the python lib Shapely enforces the space.
> > Not sure what to do here, I'd like to follow the standard,
> > but the PostGIS is kind of the standard way to follow the standard.
> >
> > Remi
> >
> >
> >
> > Le ven. 23 avr. 2021 Ã 15:50, Paul Ramsey <pramsey@cleverelephant.ca> a
> écrit :
> > Reference please? In general the OGC standards have a lot of room for
> interpretation in them.
> > Certainly we've done it this way for 20 years, so :)
> > P.
> >
> > > On Apr 23, 2021, at 12:44 PM, Rémi c <remi.cura@gmail.com> wrote:
> > >
> > > Hey dear list,
> > > I'm looking at ST_asWKT() function.
> > > I noticed an issue here:
> > > PostGIS outputs something like:
> > > `POLYGON((1 2, 2 3, 3 4, 1 2))`
> > > Yet the WKT standard requires a space after `POLYGON`, like
> > > `POLYGON ((1 2, 2 3, 3 4, 1 2))`
> > >
> > > Am I missing something here?
> > > Thanks folks.
> > > Remi
> > > _______________________________________________
> > > postgis-users mailing list
> > > postgis-users@lists.osgeo.org
> > > https://lists.osgeo.org/mailman/listinfo/postgis-users
> >
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users@lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/postgis-users
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users@lists.osgeo.org
> > https://lists.osgeo.org/mailman/listinfo/postgis-users
>
> _______________________________________________
> postgis-users mailing list
> postgis-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users
>
[Attachment #5 (text/html)]
<div dir="ltr"><div class="gmail_default" \
style="font-family:monospace,monospace">Thanks <a class="gmail_plusreply" \
id="plusReplyChip-3" href="mailto:pramsey@cleverelephant.ca" tabindex="-1">@Paul \
Ramsey</a> !<br></div><div class="gmail_default" \
style="font-family:monospace,monospace">Remi<br></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 23 avr. 2021 Ã \
16:24, Paul Ramsey <<a \
href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>> a écrit \
:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Since hopefully most \
parsers will consume either version (and kind of have to) just go with emitting \
whatever makes you feel good, no?<br> <br>
> On Apr 23, 2021, at 1:21 PM, Rémi c <<a href="mailto:remi.cura@gmail.com" \
target="_blank">remi.cura@gmail.com</a>> wrote:<br> > <br>
> Hey Paul, great to hear from you!<br>
> Yeah I agree this is a bit confusing :-/<br>
> <br>
> The standards are here, page 54.<br>
> The interesting line is ```<polygon tagged text> ::= polygon <polygon \
text>```<br> > Where `<polygon text>` is then refined into EMPTY or a \
list of linestrings between parenthesis.<br> > <br>
> It looks like the python lib Shapely enforces the space.<br>
> Not sure what to do here, I'd like to follow the standard, <br>
> but the PostGIS is kind of the standard way to follow the standard.<br>
> <br>
> Remi<br>
> <br>
> <br>
> <br>
> Le ven. 23 avr. 2021 Ã 15:50, Paul Ramsey <<a \
href="mailto:pramsey@cleverelephant.ca" \
target="_blank">pramsey@cleverelephant.ca</a>> a écrit :<br> > Reference \
please? In general the OGC standards have a lot of room for interpretation in \
them.<br> > Certainly we've done it this way for 20 years, so :)<br>
> P.<br>
> <br>
> > On Apr 23, 2021, at 12:44 PM, Rémi c <<a \
href="mailto:remi.cura@gmail.com" target="_blank">remi.cura@gmail.com</a>> \
wrote:<br> > > <br>
> > Hey dear list,<br>
> > I'm looking at ST_asWKT() function.<br>
> > I noticed an issue here:<br>
> > PostGIS outputs something like:<br>
> > `POLYGON((1 2, 2 3, 3 4, 1 2))`<br>
> > Yet the WKT standard requires a space after `POLYGON`, like<br>
> > `POLYGON ((1 2, 2 3, 3 4, 1 2))`<br>
> > <br>
> > Am I missing something here?<br>
> > Thanks folks.<br>
> > Remi<br>
> > _______________________________________________<br>
> > postgis-users mailing list<br>
> > <a href="mailto:postgis-users@lists.osgeo.org" \
target="_blank">postgis-users@lists.osgeo.org</a><br> > > <a \
href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" \
target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br> > \
<br> > _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@lists.osgeo.org" \
target="_blank">postgis-users@lists.osgeo.org</a><br> > <a \
href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" \
target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br> > \
_______________________________________________<br> > postgis-users mailing \
list<br> > <a href="mailto:postgis-users@lists.osgeo.org" \
target="_blank">postgis-users@lists.osgeo.org</a><br> > <a \
href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" \
target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br> <br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org" \
target="_blank">postgis-users@lists.osgeo.org</a><br> <a \
href="https://lists.osgeo.org/mailman/listinfo/postgis-users" rel="noreferrer" \
target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-users</a><br> \
</blockquote></div>
_______________________________________________
postgis-users mailing list
postgis-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/postgis-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic