Remark
These lecture notes are in early access and will continue to evolve based on classroom experience and feedback.
3. Files, Conversion, and Spatial Databases#
Chapters 1 and 2 established the question, data model, and CRS. This chapter asks how to keep those decisions intact when data moves between systems and tools. Sections 1-5 tour the file formats you will meet most often — GeoJSON, the ESRI Shapefile, GeoPackage, the Esri File Geodatabase, KML, GML, and OpenStreetMap — and Section 6 turns that tour into a decision framework and a safe conversion workflow. Section 7 introduces spatial SQL, PostGIS, and SpatiaLite. Sections 8 and 9 extend the workflow to repeatable ETL, APIs, open data, and licensing.
The progression is deliberate:
geospatial file formats and GeoJSON.
the ESRI Shapefile.
GeoPackage and File Geodatabases.
KML and GML.
OpenStreetMap data.
choosing and converting between formats.
spatial database systems: PostGIS and SpatiaLite.
geospatial ETL and data carpentry.
open data, APIs, and licensing.
A reusable storage decision
Audience: web map, desktop GIS, notebook, or service?
Scale: how much data must each query read?
Schema: multiple layers, long names, nulls, dates, or metadata?
Concurrency: one analyst or many writers/readers?
Reproducibility: can source, version, CRS, and transformations be recovered?
Keep an immutable source and document every conversion. Later analytical work assumes inputs have already passed this check.
- 3.1. Geospatial File Formats: Foundations and GeoJSON
- 3.2. The ESRI Shapefile
- 3.3. GeoPackage and File Geodatabases
- 3.4. KML and GML
- 3.5. OpenStreetMap Data
- 3.6. Choosing and Converting Between Formats
- 3.7. Spatial Database Systems: PostGIS and SpatiaLite
- 3.8. Geospatial ETL, Open Data, and Licensing