[Gdal-dev] Re: Problem using EPSG in C#
Tomas R
monshi at home.se
Tue May 8 12:24:16 EDT 2007
Frank Warmerdam skrev:
> Tomas R wrote:
>> What I guess I miss is how to set up the paths and so between/to the
>> different data files.
>> GDAL is located in FWTools\bin (on the PATH)
>> EPSG-catalouge in FWTools\Data (also on the PATH) and also copied to
>> the VSE project.
>> But how SHOULD it be? I stumble in darkness...
>
> Tomas,
>
> I think what you need to do is call Gdal.PushFinderLocation()
> with the path to the GDAL data directory as the argument.
>
> When applications are run from within the FWTools Shell this is
> accomplished via an environment variable (GDAL_DATA), but freestanding
> applications can call CPLPushFinderLocation() which in the csharp
> bindings is (I believe) known as Gdal.PushFinderLocation().
>
> Best regards,
I have tried
GDAL.gdal.SetConfigOption("GDAL_DATA",@"C:\Program\FWTools1.2.0\data\");
and
GDAL.gdal.PushFinderLocation(@"C:\Program\FWTools1.2.0\data\");
but still gets the same error.
I take a peek at
GDAL.gdal.GetConfigOption("GDAL_DATA", dummy)
and, yes, it is set to
"C:\\Program\\FWTools1.2.0\\data\\"
Perhaps I should try using the latest version of GDAL#-bindings?
More information about the Gdal-dev
mailing list