[GRASS-dev] [GRASS GIS] #929: g.transform: dump coeffs and transform sparse points

GRASS GIS trac at osgeo.org
Sat Feb 13 11:14:15 EST 2010


#929: g.transform: dump coeffs and transform sparse points
-------------------------+--------------------------------------------------
 Reporter:  hamish       |       Owner:  grass-dev at lists.osgeo.org
     Type:  enhancement  |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  Imagery      |     Version:  svn-trunk                
 Keywords:  g.transform  |    Platform:  All                      
      Cpu:  All          |  
-------------------------+--------------------------------------------------
 Hi,

 the attached patch adds a new flag to dump transform coeffs, transform
 arbitrary input coords to the other coord system, and a adds a flag to
 tell it to do these things in reverse.

 it also fixes a little `continue` bug if you selected format="".

 (
 based on Glynn's tips on the -dev ML.
   http://thread.gmane.org/gmane.comp.gis.grass.devel/38099
 )


 I'm not decided what to do about reading from stdin. I suspect I'll have
 to drop the east_north=x1,y1,x2,y2,xn,yn,... option in favor of an input
 file containing points to be transformed because the parser insists on two
 values, and "-,-" if given is read as -0,-0. Well, I guess I could have
 strcmp() test for "-,-" but it's a bit silly.
 I'd rater not add another flag to direct the input.
 any ideas?


 FIXME: if using the reverse flag check the TARGET location's
 G_projection() type and use it for G_scan_easting() instead of the current
 location's type.



 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/929>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list