Skip to content

Not possible to read from file handles without warningsΒ #508

Open
@vilim

Description

@vilim

Reading files with the method:

with open(file, "rb") as f:
    pyogrio.read_dataframe(f)

always raises a warning like:

/home/vstih/.conda/envs/detektp/lib/python3.11/site-packages/pyogrio/raw.py:198: RuntimeWarning:

File [/vsimem/pyogrio_c99dcda56d63460497ec381f7b73f788](http://localhost:8810/vsimem/pyogrio_c99dcda56d63460497ec381f7b73f788) has GPKG application_id, but non conformant file extension

I am using pyogrio version 0.10.0
if a byte stream is passed to read_dataframe, I guess the warning should not be raised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions