[Gdal-dev] "Old-Style" ESRI .PRJ files -- Access Violation
onImportFromESRI
Ben Discoe
ben at vterrain.org
Sat Dec 10 05:03:58 EST 2005
Chris,
Don't know if this helps, but we also moved our project from using
"importFromWkt" to "importFromESRI" and the transition was painless, no
crashes or unexpected behavior.
You could check for the usual things: GDAL is latest release, GDAL data
files are being found, etc. - next step would probably be to step into
importFromESRI and see where it's failing.
BTW, i think you could reduce your test example below to:
OGRSpatialReference oSRS;
char **papszPrj = CSLLoad(argv[1]);
OGRErr eErr = oSRS.importFromESRI(papszPrj);
CSLDestroy( papszPrj );
Good luck,
Ben
> -----Original Message-----
> From: Christopher Michaelis
> Sent: Friday, December 09, 2005 5:25 PM
> To: gdal-dev at lists.maptools.org
>
> [...]
> Now... to test it, I simply changed "ImportFromWkt" to
> "ImportFromESRI"
> in my code. No matter whether I try to read a new or
> old-style .prj file, this function call results in an access
> violation in GDAL13.dll.
More information about the Gdal-dev
mailing list