[postgis-tickets] [PostGIS] #3253: ST_3DMaxDistance curved geometries mixed dimension yields DIST_MAX mode not supported
PostGIS
trac at osgeo.org
Fri Aug 21 12:27:52 PDT 2015
#3253: ST_3DMaxDistance curved geometries mixed dimension yields DIST_MAX mode not
supported
----------------------+---------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: low | Milestone: PostGIS 2.2.0
Component: postgis | Version: trunk
Resolution: | Keywords:
----------------------+---------------------------
Comment (by nicklas):
ST_MaxDistance actually supports curves. But the function isn't aware of
that. If works becasue all geoemtries to ST_MaxDistance goaes through
ST_ConvexHull and then curves becomes polygons.
But 3D is another story because ST_Convexhull would take away nessecary
information for 3Dcalculations since ST_ConvexHull isn't 3D aware.
Anyway. The fix in this case is to catch curves in the mixed
dimentionality case before sending to 2D calc.
This is done in r13970
Or actually i only let Points, Lines and Polygons get through.
It doesn't affect cases with 2 3D geoemtries but only when at least 1 of
the geometries only have 2 dims.
Otherwise those curves will be cached later in the process. But
collections of different kinds with mixed dimmentionality is also
affected. Because they are not evaluted yet when I do the check. Maybe
have to redo that thing :-(
What do you think
Is it important that collections in the mixed dimmentionality case is let
through?
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/3253#comment:4>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list