You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't seem to be able to access columns of type float from file geodatabases. Layers will be ingested, but the offending columns are dropped.
Expected behavior and actual behavior.
Reading a layer from within a file geodatabase:
Expected:
Expect all numeric columns to be included in schema.
Opening same geodatabase and layer using other GDAL/OGR tools (e.g. QGIS, ogrinfo) correctly read the data.
Actual:
Columns which have a data type of float are declared invalid as fiona reads them; they are not included in the schema.
The fiona warning message claims that a data type of (2, 3) is invalid. The way I read https://github.com/Toblerity/Fiona/blob/main/fiona/gdal.pxi#L228, that maps to OFTReal/OFSTFloat32. If I've understood that correctly, fiona is rejecting float32 data types due to there not being a mapping in OGRPropertyGetter for this type.
Steps to reproduce the problem.
Create file geodatabase with ArcGIS Pro (sample gdb is attached to this issue)
Add feature class with at least one column of type float
Open that gdb/layer with fiona
Attached is a simple geodatabase with two feature classes in it. One with a float column and one with a double column. The with_float32 layer does not recognize all columns.
I don't seem to be able to access columns of type
float
from file geodatabases. Layers will be ingested, but the offending columns are dropped.Expected behavior and actual behavior.
Reading a layer from within a file geodatabase:
Expected:
ogrinfo
) correctly read the data.Actual:
float
are declared invalid asfiona
reads them; they are not included in the schema.The
fiona
warning message claims that a data type of(2, 3)
is invalid. The way I read https://github.com/Toblerity/Fiona/blob/main/fiona/gdal.pxi#L228, that maps toOFTReal/OFSTFloat32
. If I've understood that correctly,fiona
is rejecting float32 data types due to there not being a mapping in OGRPropertyGetter for this type.Steps to reproduce the problem.
float
Attached is a simple geodatabase with two feature classes in it. One with a
float
column and one with adouble
column. Thewith_float32
layer does not recognize all columns.A similar feature class, created with
value
column of type double:Operating system
Fiona and GDAL version and provenance
Fiona 1.10.1 installed via PyPi
test.gdb.zip
The text was updated successfully, but these errors were encountered: