[gdal-dev] load the file to a gdal data set
Djordje Spasic
issworld2000 at yahoo.com
Sun Nov 15 06:08:58 PST 2015
Hello,
Does anyone know, how to load a file to a gdal data set in ironpython through gdal_csharp.dll?
I tried the following:
from clr import AddReferenceToFileAndPath as addref
addref("c:/gdal/gdal_csharp.dll")
import OSGeo.GDAL as gdalcsharp
readOnlyAccess = gdalcsharp.Access.GA_ReadOnly
dataSet = gdalcsharp.Gdal.Open("c:/gdal/elevations.asc", readOnlyAccess)
But at the last line, an exception arise:
The type initializer for 'OSGeo.GDAL.GdalPINVOKE' threw an exception.
What is the problem? Am I defining the Access incorrectly?Thank you in advance.
Kind regards,
Djordje Spasic
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20151115/965405a1/attachment-0001.html>
More information about the gdal-dev
mailing list