Opened 7 years ago

Last modified 4 years ago

#4065 assigned enhancement

Affine Utilities

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

Description

With an 'affine' type, it would be possible to create some cool affine utilities

ST_AffineCalculate(point, point) => affine (translate)
ST_AffineCalculate(line, line) => affine(scale/rotate/translate/shear)
ST_AffineTranslate(affine, point) => affine with added translation
ST_AffineRotate(affine, angle) => affine with added rotation
ST_AffineScale(affine, point) => affine with added scale
ST_AffineInvert(affine) => affine the carries out reverse of input

Change History (6)

comment:1 by pramsey, 7 years ago

Oh, and of course

ST_Affine(geometry, affine) => geometry

comment:2 by komzpa, 7 years ago

Can it be made compatible with opengl matrices?

Would be cool to have a chain of functions that can take screen geometry and camera view and transform both into a shape that ST_Intersects with everything that needs fetching into screen, although it needs some more thought.

comment:3 by pramsey, 7 years ago

I think doing a projection from 3-space to x/y is possible, with a normal to the screen, a normal to the projection plan and a camera locations/direction. But... I'm not sure how useful it would be :)

comment:4 by komzpa, 6 years ago

Milestone: PostGIS 2.5.0PostGIS 3.0.0

comment:5 by pramsey, 5 years ago

Milestone: PostGIS 3.0.0PostGIS 3.1.0

comment:6 by pramsey, 4 years ago

Milestone: PostGIS 3.1.0PostGIS Fund Me
Note: See TracTickets for help on using tickets.