<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 09/01/2011 08:23 PM, Ole Nielsen wrote:
<blockquote
cite="mid:CALcLSfoS_736oaseuYOQpsT84wrwD1uob+O4BGua7=1M62Qxyw@mail.gmail.com"
type="cite">Many thanks for the reply, but I need the Python
bindings as we are using ogr deeply embedded in an application and
creating of new layers using the SetField command (amongst others)
is critical. Hence my worry when we get the error<br>
<br>
NotImplementedError: Wrong number of arguments for overloaded
function 'Feature_SetField'.<br>
<br>
I am sure it is something simple that changed in more recent
versions - such as an extra required argument perhaps - and I'd be
grateful if someone who knows the codebase could tell me what this
error means and what I must do to make the call succeed.<br>
<br>
Many thanks<br>
Ole Nielsen<br>
<br>
<br>
<div class="gmail_quote">On Fri, Sep 2, 2011 at 8:15 AM, Eli Adam
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:EAdam@co.lincoln.or.us">EAdam@co.lincoln.or.us</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
Ole,<br>
<br>
> Is there a way of telling which one I am using (both when
running<br>
> commandline org2org and when importing the ogr module in
python)?<br>
<br>
ogr2ogr --version will work on the command line for at least
the major version number. I'm not sure about in python.<br>
<br>
</blockquote>
</div>
</blockquote>
This should give you the bindings version picked up by Python:<br>
>>>from osgeo import gdal<br>
>>>gdal.__version__<br>
<br>
You can also check the PYTHONPATH with<br>
>>>import sys<br>
>>>sys.path<br>
<br>
to see which location gets picked up first when you import osgeo
modules<br>
likely locations you'll find the modules:
/usr/(local)/lib/python2.x/dist-packages<br>
<br>
-marius<br>
<blockquote
cite="mid:CALcLSfoS_736oaseuYOQpsT84wrwD1uob+O4BGua7=1M62Qxyw@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">
HTH, Eli<br>
<br>
><br>
> Cheers and thanks<br>
> Ole<br>
<br>
<br>
</blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<br>
</body>
</html>