Necessary changes and tests to ensure following behaviour for both use_arrow=True and use_arrow=False:
if columns=[], read_geometry=False and return_fid/fid_as_index=False, a ValueError is raised
if columns=[], read_geometry=False and return_fid/fid_as_index=True, the index is read and returned
if none of the above, but fid_as_index=False and the result ends up having no geometry nor attribute columns (eg. because the input file doesn't have a geometry column and columns=[]), an empty DataFrame is returned.
Necessary changes and tests to ensure following behaviour for both
use_arrow=True
anduse_arrow=False
:columns=[]
,read_geometry=False
andreturn_fid/fid_as_index=False
, a ValueError is raisedcolumns=[]
,read_geometry=False
andreturn_fid/fid_as_index=True
, the index is read and returnedfid_as_index=False
and the result ends up having no geometry nor attribute columns (eg. because the input file doesn't have a geometry column andcolumns=[]
), an empty DataFrame is returned.closes #263