GeoDaCenter / geoda

GeoDa: An introduction to spatial data analysis
http://geodacenter.github.io
GNU General Public License v3.0
702 stars 156 forks source link

Feature: support open parquet file #2456

Closed lixun910 closed 11 months ago

lixun910 commented 1 year ago

Datasource: https://github.com/microsoft/USBuildingFootprints

wget https://usbuildingdata.blob.core.windows.net/usbuildings-v2/Utah.geojson.zip
docker run --rm -it -v $(pwd):/data osgeo/gdal:latest \
  ogr2ogr \
  /data/Utah.parquet \
  /vsizip//data/Utah.geojson.zip \
  -dialect SQLite \
  -sql "SELECT geometry FROM 'Utah.geojson'" \
  -lco COMPRESSION=BROTLI \
  -lco GEOMETRY_ENCODING=GEOARROW \
  -lco POLYGON_ORIENTATION=COUNTERCLOCKWISE \
  -lco ROW_GROUP_SIZE=9999999