EJ

  • blog
    • Classroom environment optimization
  • notes
    • [Notes] Formatting cross-reference figures in Word
    • [Notes] How to Write a Good Scientific Paper: Figures, Part 2
    • apache-parquet-files
    • async-await-python
    • Cross-platform conda env yml
    • Import GeoJSON Into Database
    • ingesting-parquet-to-posgres-parquet_fdw
    • ingesting-parquet-to-postgres-duckdb
    • ingesting-parquet-to-postgres-pd-sqla
    • ingesting-parquet-to-postgres-pg_parquet
    • ingesting-parquet-to-postgres-pyarrow
    • ogr2ogr Cheatsheet
    • podman-postgresql
    • Restore PostGIS Database from Backup
    • Running PostGIS in Silverblue
    • sqlalchemy-101
    • sqlalchemy-working-with-db-metadata
    • thermal-comfort
    • transmission-modes
    • virtual-machines-in-silverblue-i3
    • websockets
    • Zsh alias with argument and autocompletion
Home

❯

notes

❯

Import GeoJSON Into Database

Import GeoJSON Into Database

Sep 02, 20251 min read

  • GIS
  • PostGIS
  • GeoJSON

Once you have created a database Running PostGIS in Silverblue you may want to import data to it.

For example, to import the data from: https://github.com/microsoft/USBuildingFootprints?tab=readme-ov-file. You can run this from the container’s CLI:

ogr2ogr -f "PostgreSQL" PG:"dbname=nys_tax_parcels user=postgres" \
    "/tmp/us_building_footprints_new_york.geojson" \
    -nln ny_building_footprints -nlt POLYGON \
    -lco GEOMETRY_NAME=geom -lco FID=ogc_fid


Graph View

Backlinks

  • Running PostGIS in Silverblue

EmJames, created with Quartz © 2025

  • GitHub
  • Blog
  • Notes