- Workshop materials.
- Reused the
postgis
Docker Compose template from previous workshop - Reused also the
osgeo/gdal
container to useogr2ogr
on the downloaded shapefiles. - Added
pg_featureserv
andpg_tileserv
Docker images passing the.toml
configurations as part of thecommand
setting. - Added an
nginx
service to the compose file for the HTML files. - Played with different HTML pages that load tiles from
pg_tileserv
and displays them using OpenLayers. - Created a view that returns random points.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from skimage import io, exposure | |
import numpy as np | |
# Histogram matching with masked image | |
def match_histograms(image, reference, image_mask, fill_value=0): | |
masked_image = np.ma.array(image, mask=image_mask) | |
matched = np.ma.array(np.empty(image.shape, dtype=image.dtype), | |
mask=image_mask, fill_value=fill_value) | |
for channel in range(masked_image.shape[-1]): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Concurrent read-process-write example""" | |
import concurrent.futures | |
from itertools import islice | |
from time import sleep | |
import rasterio | |
CHUNK = 100 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
- Related Setup: https://gist.github.com/hofmannsven/6814278
- Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
- Interactive Beginners Tutorial: http://try.github.io/
- Git Cheatsheet by GitHub: https://services.github.com/on-demand/downloads/github-git-cheat-sheet/
Press minus + shift + s
and return
to chop/fold long lines!