[postgis-users] Scale without translate?

Rob Agar robagar at westnet.com.au
Thu May 17 15:00:10 PDT 2007


Bruce Rindahl wrote:
> SELECT translate(
> scale(
> translate(the_geom,-x(centroid(the_geom)),-y(centroid(the_geom)))
> ,myScale)
> ,x(centroid(the_geom)),y(centroid(the_geom)))

on a side point, is the postgresql optimizer smart enough not to call 
centroid() four times in this case?

Rob



More information about the postgis-users mailing list