[postgis-tickets] [PostGIS] #4084: Wrong code-comment regarding front/back of BOX3D
PostGIS
trac at osgeo.org
Wed May 9 15:15:03 PDT 2018
#4084: Wrong code-comment regarding front/back of BOX3D
---------------------+---------------------
Reporter: mat | Owner: pramsey
Type: defect | Status: new
Priority: low | Milestone:
Component: postgis | Version: trunk
Keywords: |
---------------------+---------------------
In the code for casting BOX3D to geometry, the six sides of the box are
commented as front, back, top, bottom, left and right. However, front and
back are the wrong way around. The y-axis points away from the viewer, so
the the side with the y-max value is the back.
I trusted these comments, which lead to some discrepancies. It took me
several hours to realize the comments, which I took for a fact, were
actually wrong.
Link to code: https://github.com/postgis/postgis/blob/svn-
trunk/postgis/lwgeom_box3d.c#L336
Related question on stackexchange:
https://gis.stackexchange.com/questions/282253/postgis-axis-orientation-
box3d
PR: https://github.com/postgis/postgis/pull/241
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4084>
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