paleolimbot opened a new issue, #380: URL: https://github.com/apache/sedona-db/issues/380
Discovered when writing the release post: ```python # pip install "apache-sedona[db]" import sedona.db sd = sedona.db.connect() url = "https://flatgeobuf.septima.dk/population_areas.fgb" sd.read_pyogrio(url).to_view("population_areas") # Cancelled after 30s wkt = "POLYGON ((-73.978329 40.767412, -73.950005 40.767412, -73.950005 40.795098, -73.978329 40.795098, -73.978329 40.767412))" sd.sql(f""" SELECT sum(population::INTEGER) FROM population_areas WHERE ST_Intersects(wkb_geometry, ST_SetSRID(ST_GeomFromWKT('{wkt}'), 4326)) """).show() # 0.5s import geopandas import shapely wkt = "POLYGON ((-73.978329 40.767412, -73.950005 40.767412, -73.950005 40.795098, -73.978329 40.795098, -73.978329 40.767412))" geopandas.read_file(url, bbox=shapely.from_wkt(wkt).bounds, use_arrow=True) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
