[postgis-devel] Testing ST_LineMerge issue

Obe, Regina robe.dnd at cityofboston.gov
Wed Dec 17 07:33:19 PST 2008


I was thinking about this failed test more and even though I had
dismissed it as something only a Monkey would do that is not urgent.  

It has occurred to me that I may run into this issue with Monkey users
and I may have already that may be a culprit in my geoserver random
disconnects.  

At least one of the projects I'm working on I have run into users
creating invalid geometries.  Since they put in a lot of effort making
these monsters, we decided to just check on some schedule to make sure
the new geometries being created are valid.

The monster I am talking about is this innocent one that I took out of
the torture script because well you can't torture a dead server.

In its simplest form it looks like this.

SELECT ST_LineMerge(ST_MakeLine(ST_Point(1,1), ST_Point(1,1)));


Now there are 2 issues here.

1) GEOS ST_LineMerge is obviously not smart enough to realize that
linemerging something like that is silly.

2) ST_MakeLine lets you get away with creating this monstrosity.  Which
hmm I suppose there are reasons why someone may want to, but perhaps we
shouldn't go there.




-----------------------------------------
The substance of this message, including any attachments, may be
confidential, legally privileged and/or exempt from disclosure
pursuant to Massachusetts law. It is intended
solely for the addressee. If you received this in error, please
contact the sender and delete the material from any computer.



More information about the postgis-devel mailing list