Opened 13 years ago

Closed 13 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: master
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 13 years ago.
empty_inline_comments.diff (1.5 KB ) - added by Mike Taves 13 years ago.

Download all attachments as: .zip

Change History (5)

by Mike Taves, 13 years ago

Attachment: empty_doc.diff added

comment:1 by Mike Taves, 13 years ago

Version: 1.5.Xtrunk

comment:2 by Mike Taves, 13 years ago

Component: postgisdocumentation
Owner: changed from pramsey to robe

by Mike Taves, 13 years ago

Attachment: empty_inline_comments.diff added

comment:3 by robe, 13 years ago

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.