Skip to content

v0.4.0

Choose a tag to compare

@mradamcox mradamcox released this 11 Nov 21:08
· 19 commits to main since this release
d8dc87f

Summary

This release includes a number of new minor features, bugfixes, and general maintenance chores. A few of the most significant changes are described below

TiTiler changes

The app now expects a much more recent release of TiTiler (2.4.0), and in development it can use the base image provided by Dev Seed, not the fork I had created previously. In production, the TiTiler lambda stack is now created with AWS CDK. See: https://github.com/ohmg-dev/deployment. The production TiTiler has the WMS extension enabled, while the base image from Dev Seed will not have that extension meaning that in development, WMS endpoints will not work, even though the app still generates them from a template.

New map loading and catalog record utils

New LOC Sanborn maps can now be loaded (by admin users) through the front-end. This is a stepping-stone toward supporting many other types of curated import processes from different source repositories.

Relatedly, catalog record information for maps now comes entirely from the database, using a new Source database model--prior to this there were instances of "Sanborn" or LOC links being hard-coded into the frontend, but on the Map and Document/Layer pages all field values are now data-driven. This was a long-time blocker to the ability to make publicly available any content on the site that is not from the LOC Sanborn collection.

Screenshots and more info in the pull request.

Upgrade notes

Run database migrations to apply a number of database schema changes:

./manage.py migrate

This will create a the new Source table in the database, as well as the default source for the LOC Sanborn collection. To create a new custom source and attach it to existing maps in the database, see the example snippet below (using an imagined UNR collection). Or, create the Source in the Django admin site and then just bulk apply it with the snippet below.

One final note: Map.creator has been removed, in favor of only using Map.publisher.

new_source = Source.objects.create(
    abbreviation="UNR",
    name="University of Nevada, Reno, Special Collections",
    url="https://unr.edu/special-collections",
    note="The Special Collections at the University of Nevada, Reno, houses historical maps from around the state.",
 )
for map in Map.objects.all():
    map.publisher = "<set publisher field if needed>"
    map.source = new_source
    map.save()

The shape of the Source table will likely change over time, for now, consider it more of a Source + Collection representation.

To upgrade TiTiler in development, just run this script to start the docker image, as before.

source ./scripts/titiler_dev.sh

What's Changed

Features

Bugfixes

Chores

New Contributors

Full Changelog: v0.3.0...v0.4.0