[postgis-devel] MultiPoint weirdness
strk at refractions.net
strk at refractions.net
Tue Jan 18 02:10:12 PST 2005
I've dropped support for non-collection EMPTY geoms and fixed
the bug you found, as by proposal below.
--strk;
On Tue, Jan 18, 2005 at 08:57:34AM +0100, strk at refractions.net wrote:
> mm... 'MULTIPOINT(0 0)'::geometry also doens't work.
> I've found out this is due to the GEOMETRYCOLLECTION(EMPTY)
> support I've added recently (so should not be in RC1).
>
> What do you think about dropping all EMPTY geoms except
> GEOMETRYCOLLECTION ? It would simplify the code and the usage
> of it. Canonical empty output is:
>
> GEOMETRYCOLLECTION EMPTY
>
> Accepted inputs would be:
>
> GEOMETRYCOLLECTION EMPTY
> GEOMETRYCOLLECTION(EMPTY)
>
> --strk;
>
> On Mon, Jan 17, 2005 at 05:45:38PM +0100, Markus Schaber wrote:
> > Hi,
> >
> > Another weirdness:
> >
> > lwgeom=# select asewkt(geomunion('POINT(10 10 10)','POINT(20 20 20)'));
> > asewkt
> > -------------------------------
> > MULTIPOINT(10 10 10,20 20 20)
> > (1 Zeile)
> >
> > lwgeom=# select isvalid(geomunion('POINT(10 10 10)','POINT(20 20 20)'));
> > isvalid
> > ---------
> > t
> > (1 Zeile)
> >
> > lwgeom=# select geometryFromText('MULTIPOINT(10 10 10,20 20 20)',-1);
> > ERROR: parse error - invalid geometry
> >
> > lwgeom=# select geometryFromText(asewkt(geomunion('POINT(10 10
> > 10)','POINT(20 20 20)')),-1);
> > ERROR: parse error - invalid geometry
> >
> > So the lwgeom parser does not accept a valid geometry it created itsself.
> >
> > For comparison:
> >
> > The old 0.8 version creates a strange result, but accepts the result again:
> > hwgeom=# select geomunion('POINT(10 10 10)','POINT(20 20 20)');
> > geomunion
> > ---------------------------------------------------
> > SRID=-1;MULTIPOINT(10 10 1.7e-308,20 20 1.7e-308)
> > (1 Zeile)
> >
> > hwgeom=# select 'SRID=-1;MULTIPOINT(10 10 1.7e-308,20 20
> > 1.7e-308)'::geometry;
> > geometry
> > ---------------------------------------------------
> > SRID=-1;MULTIPOINT(10 10 1.7e-308,20 20 1.7e-308)
> > (1 Zeile)
> >
> > [Sorry, but I don't currently have a 0.9 installation working to compare
> > against, but I'm working on it :-)]
> >
> > Thanks,
> > markus
> > _______________________________________________
> > postgis-devel mailing list
> > postgis-devel at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-devel
>
> --
>
> For standing up against patentability of software,
>
> Thank You, Poland!
>
> Read the intervention: http://kwiki.ffii.org/ConsPolon041221En
> Send your thanks: thankyoupoland.info
> Read/do more: http://www.noepatents.org/
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
--
For standing up against patentability of software,
Thank You, Poland!
Read the intervention: http://kwiki.ffii.org/ConsPolon041221En
Send your thanks: thankyoupoland.info
Read/do more: http://www.noepatents.org/
More information about the postgis-devel
mailing list