Skip to content

Instantly share code, notes, and snippets.

View kgjenkins's full-sized avatar

Keith Jenkins kgjenkins

View GitHub Profile
@kgjenkins
kgjenkins / index.html
Last active December 4, 2023 06:22
Cornell Theses and Dissertations by Academic Discipline
<html>
<head>
<title>Cornell Theses and Dissertations by Academic Discipline</title>
<meta http-equiv='Content-type' content='text/html; charset=UTF-8'>
<meta name='author' content='Keith Jenkins'>
<meta name='dateModified' content='2022-01-11'>
<style>
body { font-family: sans-serif }
h1 { text-align:center ; background: #b31b1b ; color: #fff ; padding: 0.5em ; margin: 0 }
td { white-space: nowrap }
@kgjenkins
kgjenkins / index.html
Last active November 14, 2021 17:55
Stamen Watercolor tiles framed in an HTML table with some CSS style effects
<!-- Stamen Watercolor tiles framed in an HTML table with some CSS style effects -->
<!-- created for Day 14 of the 2021 #30DayMapChallenge -->
<html>
<head>
<style>
img { width:128px ; height:128px }
table { border-spacing: 12px }
td { border:12px ridge #ccc }
</style>
</head>
@kgjenkins
kgjenkins / fgdc2html_simple.xsl
Last active May 25, 2021 23:25
fgdc2html_simple.xsl
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
omit-xml-declaration="yes"/>
<!--
A simple XSL stylesheet for displaying FGDC metadata as HTML
@kgjenkins
kgjenkins / index.md
Last active February 25, 2021 05:34
Creating online maps using uMap

uMap workshop

Feb 24, 2021
by Keith Jenkins, GIS Librarian at Mann Library, Cornell University

uMap lets you create you own interactive maps by adding points, lines, and polygons manually or by importing existing geospatial data sources. It offers a wide variety of basemaps, and allows you to customize how your data appears on the map, and how users will interact with it. Maps and the underlying data can be easily shared and embedded in external websites like a Wordpress site.

uMap website: https://umap.openstreetmap.fr/en/

uMap is built by members of the OpenStreetMap (OSM) community, but it is a separate project. Many of the basemaps available in uMap are derived from OSM data. Any data you add to a map in uMap remains separate from the data in OSM.

@kgjenkins
kgjenkins / index.md
Last active October 27, 2021 18:44
Working with GFED data in QGIS

Working with GFED data in QGIS

GFED (Global Fire Emissions Database) data is distributed in HDF5 format, which is commonly used for multidimensional datasets, but can sometimes be a challenge to use in QGIS for a variety of reasons. First, it doesn't have an explicitly-defined CRS that QGIS can simply use to display the data in the correct location. Second, there are many different subdatasets packed into a single GFED .hdf5 file, representing different variables, units, and time periods.

@kgjenkins
kgjenkins / index.md
Last active December 11, 2020 21:28
Madagascar goes for a swim

This was created in QGIS... details coming soon! madagascar-swim

@kgjenkins
kgjenkins / index.html
Last active December 5, 2020 20:16
Explosion followed by glitch art
<html>
<head>
</head>
<body>
<canvas id='canvas' width=960 height=500></canvas>
<script>
var c = canvas.getContext('2d');
@kgjenkins
kgjenkins / README.md
Last active November 30, 2022 09:38
QGIS Python to automatically update layer from data source

The following Python code will, every 30 seconds, automatically update the data from the source for any QGIS layer with 'autoUpdate' in the layer name. Each time it updates, it will put the timestamp in the layer name, although you could leave that part out.

This is particularly useful for remote data sources like json-over-http or even local CSV files that might be changed by another program while the QGIS project is open.

Just paste the code into the QGIS Python console.

import threading
import datetime
@kgjenkins
kgjenkins / README.md
Last active September 11, 2020 14:12
ARCH 5115 - QGIS Workshop, Day 2

ARCH 5115 - QGIS Workshop, Day 2

The QGIS workshop folder on Box has been updated, so please download the entire "QGIS-workshops" folder to your computer.

  • Unzip the files
  • Double-click the workshop2.qgz project to open it in QGIS (or else open it from within QGIS)

Elevation raster data

@kgjenkins
kgjenkins / README.md
Last active September 11, 2020 13:35
ARCH 5115 - QGIS Workshop, Day 1