Opened 17 years ago

Last modified 15 years ago

#160 closed defect

Envelope Returns Invalid Geometry — at Version 2

Reported by: cfis@… Owned by: strk@…
Priority: major Milestone: 3.2.0
Component: Core Version: main
Severity: Unassigned Keywords: imported, phpbugtracker
Cc: mloskot

Description (last modified by mloskot)

select astext(envelope(GeomFromText('POINT(-104 40)')))

'POLYGON((-104 40,-104 40,-104 40,-104 40,-104 40))'

This polygon is invalid.

According to Martin:

  • This does look like a bug, or at least a porting problem in GEOS. In JTS, the envelope of a Point is itself a Point. This means that the return value is always a valid geometry, and thus can be safely used in further operations.

Change History (2)

comment:1 by benjubb@…, 17 years ago

This is a bug in PostGIS.

comment:2 by mloskot, 17 years ago

Cc: mloskot added
Description: modified (diff)
Note: See TracTickets for help on using tickets.