[Qgis-developer] Failed to load NAD27-83 correction file

Radim Blazek radim.blazek at gmail.com
Mon May 8 11:56:24 EDT 2006


Changed to set_pj_finder, that works and it seems to be cleaner.

Radim

On 5/8/06, Radim Blazek <radim.blazek at gmail.com> wrote:
> It was mix of various problems.
> 1) I tested a file outside area of valid available grid files
> 2) PROJ_LIB was set by previous qgis07 installer but qgis07 was
>     deleted from file system
> 3) PROJ checks if pj_finder was set before PROJ_LIB enviroment variable.
>     pj_finder is probably set in GRASS gproj library when plugin is loaded,
>     consequently PROJ_LIB was ignored
>
> I think that it is better to avoid any variables set by installer because
> files cannot be moved later and variable remains set even if files are deleted.
> I added setEnvironment() to QgsCoordinateTransform which sets
> PROJ_LIB to QApplication::applicationDirPath() + "/share/proj/" if not set.
> Not however that it has no efect if GRASS plugin was loaded because in that case
> pj_finder was already set to search in $GISBASE/etc/nad
>
> Radim
>
> On 5/4/06, Gary Sherman <sherman at mrcc.com> wrote:
> > Radim Blazek wrote:
> > > Hi,
> > >
> > > I have got this error on windows. I have to inspect how/where
> > > to install those files (if possible, because the files are binary
> > > and I worry that it is difficult to recompile them with crosscompiler).
> > >
> >
> > In the last version, we installed the correction files in:
> >  "$INSTDIR\proj_lib"
> >   File "proj_lib\GL27"
> >   File "proj_lib\MD"
> >   File "proj_lib\TN"
> >   File "proj_lib\WI"
> >   File "proj_lib\WO"
> >   File "proj_lib\conus"
> >   File "proj_lib\epsg"
> >   File "proj_lib\epsg-deprecated"
> >   File "proj_lib\esri"
> >   File "proj_lib\esri.extra"
> >   File "proj_lib\hawaii"
> >   File "proj_lib\nad.lst"
> >   File "proj_lib\nad27"
> >   File "proj_lib\nad83"
> >   File "proj_lib\ntv1_can.dat"
> >   File "proj_lib\null"
> >   File "proj_lib\other.extra"
> >   File "proj_lib\proj_def.dat"
> >   File "proj_lib\prvi"
> >   File "proj_lib\stgeorge"
> >   File "proj_lib\stlrnc"
> >   File "proj_lib\stpaul"
> >   File "proj_lib\world"
> >
> > The installer then set the required environment variable PROJ_LIB:
> >         PROJ_LIB=$INSTDIR\proj_lib
> >
> > Further information on this can be found at http://proj.maptools.org/
> >
> >
> > --
> > -gary
> >
> > -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
> > Gary Sherman
> > Micro Resources: http://mrcc.com
> >   "We work virtually everywhere"
> > Quantum GIS: http://qgis.org
> > -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
> >
>



More information about the Qgis-developer mailing list