[GRASS-dev] small patch for lib/vector/transform/

Dylan Beaudette debeaudette at ucdavis.edu
Fri Jun 1 18:29:59 EDT 2007


On Friday 01 June 2007 12:33, Dylan Beaudette wrote:
> I needed some functionality to print the transformation matrix, very simple
> patch - it might be useful to others.
>
> It prints out the matrix along with a small note:
>
> Transformation Matrix
> ---------------------
> 28155.882288 0.013530 1.002469
> -5301.399323 0.997547 -0.009172
> ---------------------
>
> the patch is attached.
>
> Perhaps diagnostics like this might be a general use.

ack. attached is a better version, with the ordering better spelled out. Note 
that this matrix output is in the format that other applications like R and 
PostGIS create / expect.

cheers

-- 
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341
-------------- next part --------------
A non-text attachment was scrubbed...
Name: print_matrix-patch-transform.c
Type: text/x-csrc
Size: 538 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20070601/d02d01e8/print_matrix-patch-transform.bin


More information about the grass-dev mailing list