[gdal-dev] OGR features list - python bindings
Nicol Hermann
gdal at geoworld.de
Sun May 16 08:44:20 PDT 2021
Hello,
Am Sonntag, den 16.05.2021, 17:20 +0200 schrieb Even Rouault:
> Le 16/05/2021 à 17:07, Nicol Hermann a écrit :
> > Hello,
> >
> > I am facing difficulties returning a list of ogr features from a
> > python
> > function.
> > For each entry I am getting an error message like this:
> >
> > [<osgeo.ogr.Feature; proxy of <Swig Object of type
> > 'OGRFeatureShadow *'
> > at 0x7f75e870d4b0> >
>
> This doesn't look like an error message to me, but as the expected
> not-so-sexy representation of a ogr.Feature object. Do you get an
> actual
> exception ?
No, but the execution terminates after that.
This is the function call followed by a simple print statement which
does not get printed
featureList = generateRecordFormSplit( ogr, dblayer, dblayerDefn,
'12345' )
print( featureList )
Thanks
Nicol
> Even
>
More information about the gdal-dev
mailing list