Envelope Returns Invalid Geometry
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
(7)
| Cc: |
mloskot added
|
| Description: |
modified (diff)
|
| Component: |
Build scripts → Core
|
| Version: |
3.0.0 → svn-trunk
|
| Owner: |
strk@… removed
|
| Priority: |
4 → major
|
| Status: |
assigned → new
|
| Resolution: |
→ invalid
|
| Status: |
new → closed
|