[GRASS-dev] transform additional points from XY?

Hamish hamish_b at yahoo.com
Sat Feb 13 09:15:20 EST 2010


Hamish wrote:
> > I'd like to pass g.transform a handful of x,y pixels from the the
> > same neighborhood as the GCPs and get an approximate
> > projected easting and northing back.
> 
> > If possible at all, I guess we have to write something new for
> > g.transform; any good ideas on how to do this?

Glynn:
> CRS_compute_georef_equations() calculates the forward and
> reverse transformation coefficients, while CRS_georef() applies
> the transformation to a single point.

any reason why  if (equation_stat <= 0) return;s instead of
G_fatal_error()ing?

(no point making E12 etc global vars if I can't trust them to be set later)


thanks,
Hamish



      


More information about the grass-dev mailing list