Ticket #923 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Erroneous documentation examples with "GEOMETRYCOLLECTION(EMPTY)"

Reported by: mwtoews Owned by: robe
Priority: medium Milestone: PostGIS 2.0.0
Component: documentation Version: trunk
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

empty_doc.diff Download (0.6 KB) - added by mwtoews 2 years ago.
empty_inline_comments.diff Download (1.5 KB) - added by mwtoews 2 years ago.

Change History

Changed 2 years ago by mwtoews

Changed 2 years ago by mwtoews

  • version changed from 1.5.X to trunk

Changed 2 years ago by mwtoews

  • owner changed from pramsey to robe
  • component changed from postgis to documentation

Changed 2 years ago by mwtoews

Changed 2 years ago by robe

  • status changed from new to closed
  • resolution set to fixed

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.