Re: [gdal-dev] gdal/ogr version (was NotImplementedError: Wrong number...)
Ole, Is there a way of telling which one I am using (both when running commandline org2org and when importing the ogr module in python)? ogr2ogr --version will work on the command line for at least the major version number. I'm not sure about in python. HTH, Eli Cheers and thanks Ole ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] gdal/ogr version (was NotImplementedError: Wrong number...)
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 NotImplementedError: Wrong number of arguments for overloaded function 'Feature_SetField'. 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. Many thanks Ole Nielsen On Fri, Sep 2, 2011 at 8:15 AM, Eli Adam ea...@co.lincoln.or.us wrote: Ole, Is there a way of telling which one I am using (both when running commandline org2org and when importing the ogr module in python)? ogr2ogr --version will work on the command line for at least the major version number. I'm not sure about in python. HTH, Eli Cheers and thanks Ole ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] gdal/ogr version (was NotImplementedError: Wrong number...)
On 09/01/2011 08:23 PM, Ole Nielsen wrote: 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 NotImplementedError: Wrong number of arguments for overloaded function 'Feature_SetField'. 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. Many thanks Ole Nielsen On Fri, Sep 2, 2011 at 8:15 AM, Eli Adam ea...@co.lincoln.or.us mailto:ea...@co.lincoln.or.us wrote: Ole, Is there a way of telling which one I am using (both when running commandline org2org and when importing the ogr module in python)? ogr2ogr --version will work on the command line for at least the major version number. I'm not sure about in python. This should give you the bindings version picked up by Python: from osgeo import gdal gdal.__version__ You can also check the PYTHONPATH with import sys sys.path to see which location gets picked up first when you import osgeo modules likely locations you'll find the modules: /usr/(local)/lib/python2.x/dist-packages -marius HTH, Eli Cheers and thanks Ole ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] gdal/ogr version (was NotImplementedError: Wrong number...)
good idea, thanks. However, it appears that qgis 1.7 is the one that depends on gdal 1.6. I am confused. (riab_env)nielso@shakti:~/dev$ sudo dpkg --purge libgdal1-1.6.0 dpkg: dependency problems prevent removal of libgdal1-1.6.0: libqgis1.7.0 depends on libgdal1-1.6.0. qgis-providers depends on libgdal1-1.6.0. qgis depends on libgdal1-1.6.0. python-qgis depends on libgdal1-1.6.0. In any case, we should be able to work with either, so I am hoping someone will shed some light on what the error message really means. Many thanks Ole On Fri, Sep 2, 2011 at 8:28 AM, Ariel Nunez ingenieroar...@gmail.comwrote: Ole, why don't you uninstall libgdal1-1.6.0 and the grass one and run ldconfig to make sure everything is using 1.8? Ariel. On Thu, Sep 1, 2011 at 9:23 PM, Ole Nielsen ole.moller.niel...@gmail.com wrote: 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 NotImplementedError: Wrong number of arguments for overloaded function 'Feature_SetField'. 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. Many thanks Ole Nielsen On Fri, Sep 2, 2011 at 8:15 AM, Eli Adam ea...@co.lincoln.or.us wrote: Ole, Is there a way of telling which one I am using (both when running commandline org2org and when importing the ogr module in python)? ogr2ogr --version will work on the command line for at least the major version number. I'm not sure about in python. HTH, Eli Cheers and thanks Ole ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev
Re: [gdal-dev] gdal/ogr version (was NotImplementedError: Wrong number...)
From personal experience (and others') you get some odd error messages when you start mixing different versions of libgdal. I would expect the error to go away if you stick to one version of libgdal. Ubuntu-GIS should have all the packages you need without having to mix GDAL versions. -marius On 09/01/2011 09:08 PM, Ole Nielsen wrote: good idea, thanks. However, it appears that qgis 1.7 is the one that depends on gdal 1.6. I am confused. (riab_env)nielso@shakti:~/dev$ sudo dpkg --purge libgdal1-1.6.0 dpkg: dependency problems prevent removal of libgdal1-1.6.0: libqgis1.7.0 depends on libgdal1-1.6.0. qgis-providers depends on libgdal1-1.6.0. qgis depends on libgdal1-1.6.0. python-qgis depends on libgdal1-1.6.0. In any case, we should be able to work with either, so I am hoping someone will shed some light on what the error message really means. Many thanks Ole On Fri, Sep 2, 2011 at 8:28 AM, Ariel Nunez ingenieroar...@gmail.com mailto:ingenieroar...@gmail.com wrote: Ole, why don't you uninstall libgdal1-1.6.0 and the grass one and run ldconfig to make sure everything is using 1.8? Ariel. On Thu, Sep 1, 2011 at 9:23 PM, Ole Nielsen ole.moller.niel...@gmail.com mailto:ole.moller.niel...@gmail.com wrote: 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 NotImplementedError: Wrong number of arguments for overloaded function 'Feature_SetField'. 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. Many thanks Ole Nielsen On Fri, Sep 2, 2011 at 8:15 AM, Eli Adam ea...@co.lincoln.or.us mailto:ea...@co.lincoln.or.us wrote: Ole, Is there a way of telling which one I am using (both when running commandline org2org and when importing the ogr module in python)? ogr2ogr --version will work on the command line for at least the major version number. I'm not sure about in python. HTH, Eli Cheers and thanks Ole ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev