[GRASS5] datum shifts

Bernhard Reiter bernhard at intevation.de
Fri Apr 19 16:29:01 EDT 2002


On Fri, Apr 19, 2002 at 02:15:05PM -0700, rgrmill at rt66.com wrote:
> > Shouldn't this be done at GRASS compile time, so to have the
> > right binary tables for the platform?
> > Or will the format change with proj library versions
> > that have the same binary interface?
> 
> Yes, it does need to be done when GRASS is compiled.

We need a Makefile entry for this.
Maybe Glynn can help if you give him the commands?

> > > I think the data tables 
> > > have to go under $GISBASE somewhere.  
> > 
> > That is not hardcoded, though...
> > It providing an option to specify a non-default path a good idea?
> 
> That part that has to be hard coded is the part after $GISBASE, probably 
> "/etc/nad/".  No more than I know now, it looks easier for me to code 
> this if there is no user option.

Usually I do not call a fixed relative path hardcoded... :)

> > > Wherever they do go has to be 
> > > coded into the proj library.
> > 
> > This confuses me a bit, is it an addition to proj then?
> 
> I guess I could be more specific.  A program that uses the nad<->nad 
> conversion in the proj library has to call a function called "nad_init". 
> "nad_init" takes one argument, and that is the fully qualified file name 
> for the data table that it will use for the conversions.  "nad_init" is 
> part of the proj distribution.  

Okay, thus you have to specify it when initialising proj.
No need to "code" it into library itself.

> It looks now like the name should be 
> 'getenv("GISBASE")/etc/nad/<table name>'.  

Sounds reasonable to me.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 248 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20020419/936ddc7b/attachment.bin


More information about the grass-dev mailing list