[postgis-devel] [raster] Implementations of rotation and pixel size.

David Zwarg dzwarg+postgis at azavea.com
Thu Aug 18 14:36:31 PDT 2011


Greetings raster devs,

I took a day to implement the outstanding tickets that I had for some of the
accessors related to rotated rasters:

   - #928 - Implement ST_PixelWidth
    <http://trac.osgeo.org/postgis/ticket/928>
   - #929 - Implement ST_PixelHeight
   <http://trac.osgeo.org/postgis/ticket/929>
   - #936 - Implement ST_Rotation
   <http://trac.osgeo.org/postgis/ticket/936>
   - #482 - Implement ST_SetRotation<http://trac.osgeo.org/postgis/ticket/482>

If someone could take a moment to review the patches attached to those
tickets, that would be helpful. One of the things that I did not do was to
limit the rotation amount in ST_SetRotation. I was reading more on the world
file, and it sounds like a raster shouldn't be rotated more than 90 degrees
-- should that be a hard limit in ST_Rotation?  If the rotation exceeds 90
degrees, does the affine transformation go haywire? In addition, the
UpperLeft position should realistically be changed. Otherwise, you could
technically define different rasters that cover the same area, but with
different UpperLeft coordinates (imagine if the geotransform put the
UpperLeft pixel at the lower right, and applied a 180 degree rotation).

Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20110818/f835823d/attachment.html>


More information about the postgis-devel mailing list