Opened 12 years ago

Last modified 5 years ago

#1332 new enhancement

ST_AsX3D option for bounding box output

Reported by: robe Owned by: robe
Priority: medium Milestone: PostGIS Fund Me
Component: postgis Version: master
Keywords: Cc:

Description

Add an opt option similar to what ST_AsGML has to allow outputting coordinates in a different orientation and also just the bounding box of the geometry.

Ideally would have an option to output a true mimimum bounding box (arbitrarily orientated minimum bounding box) not just an axis aligned one. As described here:

http://en.wikipedia.org/wiki/Minimum_bounding_box

Once I figure out how compute that.

Change History (8)

comment:1 by pramsey, 12 years ago

Milestone: PostGIS 2.0.0PostGIS 2.1.0
Owner: changed from pramsey to robe

comment:2 by robe, 11 years ago

Milestone: PostGIS 2.1.0PostGIS Future

comment:3 by robe, 7 years ago

Milestone: PostGIS FuturePostGIS Fund Me

Milestone renamed

comment:4 by mat, 6 years ago

This would be quite useful, as X3D has a y-up coordinate-system, while postgis is z-up. So currently all exported objects are rotated by 90°. I would even go as far as calling this a bug, since it violates the X3D specifications.

comment:5 by robe, 6 years ago

Milestone: PostGIS Fund MePostGIS 2.5.0

Hmm looks like I did put in an axis ordering (though looks to just flip x,y) rather than the Z which is the common case you mention.

http://postgis.net/docs/manual-dev/ST_AsX3D.html

I'll try to accomplish this for 2.5

comment:6 by robe, 6 years ago

Milestone: PostGIS 2.5.0PostGIS next

comment:7 by robe, 6 years ago

Milestone: PostGIS nextPostGIS 3.0.0

Milestone renamed

comment:8 by robe, 5 years ago

Milestone: PostGIS 3.0.0PostGIS Fund Me
Summary: ST_AsX3D opt option for axis ordering and bounding box outputST_AsX3D option for bounding box output

renaming the subject since axis ordering was implemented in 2.2

Note: See TracTickets for help on using tickets.