[postgis-devel] Scale function
strk at refractions.net
strk at refractions.net
Fri Jun 3 16:10:53 PDT 2005
On Thu, Jun 02, 2005 at 11:06:14AM +0200, Markus Schaber wrote:
> 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?
IIRC the *_recursive ones are not the latest ones ;)
New code is all recursive, but in a double recursive manner:
lwgeom -> lwpoint, lwline, lwpoly, lwcollection -> *lwgeom
Good to have *_ptarray versions
--strk;
More information about the postgis-devel
mailing list