<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello experts,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am writing to this list since I have been trying to use georaster driver in gdal using python bindings. If I use command line gdalinfo it works fine, which makes me believe that my environment is set up correctly and that my build is working fine, this is
my command line example that returns good response:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<blockquote style="margin-top: 0px; margin-bottom: 0px;">
<div><b><span>gdalinfo georaster:herman/vampire@aidb,HERMAN.GEORASTER_TABLE,GEORASTER,GEORID=1</span></b><span></span></div>
</blockquote>
<span></span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
In python, if I try: GetDriverByName("georaster") or GetDriverByName("geor") it returns None. There are 218 drivers in GetDriverCount() but none seems to be called, georaster, geor or anything like that.
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If I try:</div>
<blockquote style="margin-top: 0px; margin-bottom: 0px;">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><b>dataset = gdal.Open("georaster:herman/vampire@aidb,HERMAN.GEORASTER_TABLE,GEORASTER,GEORID=1", gdal.GA_ReadOnly)</b><br>
</span></div>
</blockquote>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I get:<span><br>
</span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px;">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div>ERROR 4: georaster:herman/vampire@aidb,HERMAN.GEORASTER_TABLE,GEORASTER,GEORID=1: No such file or directory<br>
</div>
<span></span><br>
</div>
</blockquote>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I tried to RegisterAll() and made no difference.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The way I built it was using the following configure: <br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<blockquote style="margin-top: 0px; margin-bottom: 0px;">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New""><b>make clean distclean<br>./configure --prefix=/home/zherena/gdal30/gdal-3.0.4/mybuild/ --with-proj=/home/zherena/gdal30/lib6/ --with-oci-lib=$ORACLE_HOME <br></b></pre>
<pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New""><b>--with-oci-include=$ORACLE_HOME/sdk/include --with-curl=/usr/bin/curl-config --with-python=/home/zherena/anaconda3/bin/python<br></b></pre>
<pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New""><b>make<br></b></pre>
<pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New""><b>make install<br></b></pre>
</div>
</blockquote>
<pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New""> <br></pre>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
and copied the osgeo generated directory to my site-packages directory.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Also, after building gdal using the previous steps, I tried:</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<blockquote style="margin-top: 0px; margin-bottom: 0px;">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New""><b><span>cd swig/python<br></span></b></pre>
<pre style="margin: 0cm 0cm 0.0001pt; font-size: 10pt; font-family: "Courier New""><b><span>make clean; make</span></b></pre>
</div>
</blockquote>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
and copied the osgeo generated directory to my site-packages directory.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Both builds have the same result. Can someone please help?, have you ever used georaster in Python? maybe I need a special extra configuration to make it work? Appreciate your help.<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Zazhil-ha<br>
</div>
</body>
</html>