Geographic data

Source code Author

using AlgebraOfGraphics, CairoMakie
using Shapefile, ZipFile
using Downloads

Antarctic coastline. Data from the SCAR Antarctic Digital Database[1].

# Download, extract, and load shapefile
t = mktempdir() do dir
    url = ""
    r = ZipFile.Reader(seekstart(, IOBuffer())))
    for f in r.files
        open(joinpath(dir,, write = true) do io
            write(io, read(f, String));
    Shapefile.Table(joinpath(dir, "add_coastline_medium_res_polygon_v7_4.shp"))

# Draw map
plt = data(t) * mapping(:geometry, color = :surface) * visual(Choropleth)
fg = draw(plt; axis=(aspect=1,))

This page was generated using DemoCards.jl and Literate.jl.

  • 1Gerrish, L., Fretwell, P., & Cooper, P. (2021). Medium resolution vector polygons of the Antarctic coastline (7.4) [Data set]. UK Polar Data Centre, Natural Environment Research Council, UK Research & Innovation.