[GRASS5] Re: auto-locate EPSG
Hamish
hamish_nospam at yahoo.com
Wed Apr 26 20:28:33 EDT 2006
> > > > the new auto-locate EPSG file isn't working for me.
> > ..
> > > configure now defines via hack (I didn't receive an answer how
> > > to do it properly) where the PROJ software is installed.
> > >
> > > See configure.in, line 583 ff.
> > >
> > > > Do I have to use --with-proj-includes= ?
> > > > (it has been fine without it up to now)
> > >
> > > Behaviour *should* not change. Apparently the
> > > $PROJINC
> > > test fails on your machine.
> >
> > this one: ?
> >
> > # Define share/proj/ directory for epsg code file
> > PROJSHARE=
> > if test -n "$PROJINC"; then
> > PROJSHARE=/usr/share/proj
> > else
> > PROJSHARE=/usr/local/share/proj
> > fi
> >
> >
> > is $PROJINC only set if I used --with-proj-includes ??
>
> No idea.
>
> Maybe it should be -z instead of -n?
I don't know much about configure, are those tests bash compatible?
If so I would guess the above is testing for whatever
"--with-proj-includes=" was set to. This is not auto-detected; if the
includes and libs are in standard paths /usr/include, ld.so.conf,
the conftests will work without that being set.
So the above just checks to see if you set --with-proj-includes and
arbitrarily starts setting a epsg path based on that. :/
better: (if it works)
# Define share/proj/ directory for epsg code file
PROJSHARE=
if test -n "$PROJINC"; then
PROJSHARE="$PROJINC/../share/proj"
else
for testdir in /usr /usr/local ; do
if test -d $testdir/share/proj ; then
PROJSHARE=$testdir/share/proj
break
fi
done
fi
"$PROJINC/../share/proj" could be better evaluated? use $PROJLIB ?
where does epsg get stored on a Mac, Cygwin, windows native, etc?
how does PROJ4 know where to find it if PROJ_LIB isn't set?
?
Hamish
More information about the grass-dev
mailing list