Opened 10 years ago
Closed 10 years ago
#3083 closed enhancement (invalid)
Add ST_MinimumDiameter() from GEOS
Reported by: | sfkeller | Owned by: | pramsey |
---|---|---|---|
Priority: | low | Milestone: | PostGIS 2.2.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
ST_MinimumDiameter() is a function in GEOS[*] obviously not yet made available in PostGIS.
[*] http://geos.refractions.net/ro/doxygen_docs/html/classgeos_1_1algorithm_1_1MinimumDiameter.html
Change History (4)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Ok. What I'm actually looking for, is a function which takes a geometry and computes its oriented bbox, that is the minimal area rectangle containing the geom.
Here's a pl/pgsql prototype implementation: https://github.com/Remi-C/PPPP_utilities/blob/6e9e8524812961b013b899466fe833dfa5d926e9/postgis/rc_oriented_bbox_deom_axis.sql
comment:3 by , 10 years ago
Milestone: | → PostGIS 2.2.0 |
---|---|
Version: | 2.1.x → trunk |
I don't think the GEOS code is going to be much help for a minimum bounding rectangle. However, the http://en.wikipedia.org/wiki/Rotating_calipers could provide a relatively easy basis to get such a thing.
comment:4 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Bruce and I asked this about 6 years ago before Bruce created ST_MinimumBoundingCircle as he thought it would be useful for building ST_MinimumBoundingCircle.
Martin responded. Here is the thread:
http://lists.osgeo.org/pipermail/geos-devel/2009-January/003861.html and key elements of it:
Anyway there is a reason we didn't expose it, not sure if that reason is still relevant:
strk you know if this function is still broken?