Skip to content

GeoDataFrames.jlSpatial vector data with DataFrames

GeoDataFrames

GeoDataFrames.jl provides geospatial I/O, metadata handling, and geometry workflows on top of ordinary DataFrames. Use Rasters.jl for raster data and GeometryOps.jl for the operation set.

Quick start

Install and load:

julia
using Pkg
Pkg.add(["GeoDataFrames"])

using GeoDataFrames

We can read a dataset by passing a filename, or an url. The source is a pinned copy of GDAL's one-point GeoJSON test dataset.

julia
using GeoDataFrames

source = "https://raw.githubusercontent.com/OSGeo/gdal/decb67c35ec249c1bae55f53238d5a69e7eff153/autotest/ogr/data/geojson/point.geojson"
table = GeoDataFrames.read(source)
table
1×1 DataFrame
Rowgeometry
IGeometr…
1Geometry: wkbPoint

read returns an ordinary DataFrame with a geometry column, and specific metadata on the geometrycolumns and crs.

Write the dataset

write the table to a GeoPackage:

julia
fn = GeoDataFrames.write("test.gpkg", table)
isfile(fn)
true

Continue with Installation, Quick start tutorial, and How-to guides.