Opened 10 years ago

Closed 10 years ago

#923 closed defect (fixed)

Erroneous documentation examples with "GEOMETRYCOLLECTION(EMPTY)"

Reported by: Mike Taves Owned by: robe
Priority: medium Milestone: PostGIS 2.0.0
Component: documentation Version: main
Keywords: Cc:

Description

See patch for corrections to trunk.

Also, as a related side note (and possibly a separate ticket) it might be worth pointing out that the "GEOMETRYCOLLECTION(EMPTY) syntax support for backward compatibility" documented release note for version 1.0.0RC2 is no longer valid on the trunk version of PostGIS:

postgis=# SELECT ST_IsEmpty('GEOMETRYCOLLECTION(EMPTY)');
ERROR:  parse error - invalid geometry
LINE 1: SELECT ST_IsEmpty('GEOMETRYCOLLECTION(EMPTY)');
                          ^
HINT:  "GEOMETRYCOLLECTION(EMPTY" <-- parse error at position 24 within geometry

Attachments (2)

empty_doc.diff (663 bytes) - added by Mike Taves 10 years ago.
empty_inline_comments.diff (1.5 KB) - added by Mike Taves 10 years ago.

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by Mike Taves

Attachment: empty_doc.diff added

comment:1 Changed 10 years ago by Mike Taves

Version: 1.5.Xtrunk

comment:2 Changed 10 years ago by Mike Taves

Component: postgisdocumentation
Owner: changed from pramsey to robe

Changed 10 years ago by Mike Taves

Attachment: empty_inline_comments.diff added

comment:3 Changed 10 years ago by robe

Resolution: fixed
Status: newclosed

Fixed at r7063 and r7064. I didn't put in your first liblwgeom/liblwgeom.h patch though because what Paul wrote there was what he intended to write - that it doesn't handle a collection of empties. It only handles an empty collection. Paul can verify that is correct.

Note: See TracTickets for help on using tickets.