Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: support writing dataframes without geometry column #267

Conversation

theroggy
Copy link
Member

closes #105

@theroggy theroggy changed the title Enh support writing dataframes (without geometry) ENH: support writing dataframes without geometry Aug 14, 2023
@theroggy theroggy marked this pull request as draft August 14, 2023 23:46
Copy link
Member

@brendan-ward brendan-ward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this @theroggy ! I needed this exact functionality recently and hadn't had a chance to work on it, so I'm very grateful you got this going.

I think the primary open-ended question here is whether or not to allow passing geometry=None instead of an array of None values to ogr_write(...).

pyogrio/tests/test_geopandas_io.py Outdated Show resolved Hide resolved
pyogrio/tests/test_geopandas_io.py Show resolved Hide resolved
pyogrio/tests/test_geopandas_io.py Show resolved Hide resolved
CHANGES.md Outdated Show resolved Hide resolved
pyogrio/geopandas.py Outdated Show resolved Hide resolved
@theroggy theroggy changed the title ENH: support writing dataframes without geometry ENH: support writing dataframes without geometry column Aug 16, 2023
Copy link
Member

@brendan-ward brendan-ward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating this @theroggy , this is getting close; a few minor suggestions. Apologies for the slow review.

pyogrio/_io.pyx Outdated Show resolved Hide resolved
pyogrio/_io.pyx Outdated Show resolved Hide resolved
pyogrio/raw.py Outdated Show resolved Hide resolved
pyogrio/raw.py Outdated Show resolved Hide resolved
pyogrio/tests/test_geopandas_io.py Outdated Show resolved Hide resolved
pyogrio/tests/test_geopandas_io.py Outdated Show resolved Hide resolved
pyogrio/tests/test_raw_io.py Outdated Show resolved Hide resolved
pyogrio/tests/test_raw_io.py Show resolved Hide resolved
Copy link
Member

@brendan-ward brendan-ward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @theroggy !

@brendan-ward brendan-ward merged commit a847c27 into geopandas:main Aug 22, 2023
16 checks passed
@theroggy theroggy deleted the ENH-Support-writing-dataframes-(without-geometry) branch August 22, 2023 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Support writing dataframes (without geometry)
3 participants