Ancestors

Written by Tanguy Fardet on 2024-05-14 at 08:17

Hi there #mapstodon, may I request some of your #GIS knowledge once more?

I'm trying to figure out whether there is a way to filter a #parquet file via @geopandas read_parquet by coarse location.

As far as I can tell, creating a geohash column beforehand and filtering by geohash seems to be the only way to do something like that; did I miss something?

[#]python #geopandas

=> More informations about this toot | More toots from tfardet@scicomm.xyz

Written by Martin Fleischmann on 2024-05-14 at 08:39

@tfardet @geopandas That is correct, as of 0.14.4 and GeoParquet spec 1.0. With the next release of geopandas, you will be able to do a spatial filter based on the bbox information, given it is provided in the GeoParquet file based on its specification v1.1.

=> More informations about this toot | More toots from martinfleis@fosstodon.org

Toot

Written by Tanguy Fardet on 2024-05-14 at 09:14

@martinfleis OK, thanks!

If I understand correctly, that means that, from the next version on, @geopandas will automatically use v1.1 when calling to_parquet and I'll be able to use a new filter syntax (explained in read_parquet's docstring, I imagine), but I'll have to regenerate all my previous parquet file.

Does that sound about right?

=> More informations about this toot | More toots from tfardet@scicomm.xyz

Descendants

Written by Martin Fleischmann on 2024-05-14 at 09:38

@tfardet Yes, precisely.

=> More informations about this toot | More toots from martinfleis@fosstodon.org

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/112438676291421603
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
328.328331 milliseconds
Gemini-to-HTML Time
0.918154 milliseconds

This content has been proxied by September (ba2dc).