[postgis-devel] Scale function

Markus Schaber schabi at logix-tt.com
Thu Jun 2 02:06:14 PDT 2005


Good morning,

The attached version also contains a transscale() function that
efficiently combines scale() and translate() for 2D geometries.

As my patch seems to generate some similar code duplication, I tend to
refactor the traversal functions lwgeom_xx_recursive and
lwgeom_xx_ptarray into generic ones (lwgeom_traversal_recursive and
lwgeom_traversal_ptarray) that use function and context pointers to
manipulate the actual ordinates. What do you think about it?

Markus



More information about the postgis-devel mailing list