Skip to content

Instantly share code, notes, and snippets.

View brucecrevensten's full-sized avatar

Bruce Crevensten brucecrevensten

View GitHub Profile
@brucecrevensten
brucecrevensten / gist:6542449
Created September 12, 2013 19:13
Mapserver configuration to connect to PostGIS data source for EPSG:3338 data
MAP
NAME "Sea Ice Atlas"
IMAGECOLOR 0 0 0
TRANSPARENT ON
SIZE 256 256
STATUS ON
CONFIG "MS_ERRORFILE" "/var/www/html/ms_error.txt"
DEBUG 5
OUTPUTFORMAT
p
| Lots of running
| text goes here but then
a(href="/somewhere") I want an inline link
| whatever whatever
...watch out for the spaces between the link and the surrounding paragraph text. (Pseudocode here).
@brucecrevensten
brucecrevensten / gist:860b02c5dffd35790a57
Created May 9, 2014 21:40
snap drupal comm charts modal example
$('#modal_name_id').button({
text: false,
icons: {
primary: 'ui-icon-help'
}
}).click(function(e) {
$('#modal_block').show().dialog({
draggable: false,
modal: true,
title: 'About scenarios',
@brucecrevensten
brucecrevensten / gist:a065ea0f49a039475760
Created September 2, 2014 13:02
Working configuration file
services:
demo:
tms:
layers:
- name: bing
title: Bing Maps
sources: [bing_cache]
caches:
@brucecrevensten
brucecrevensten / gist:288817ea067dd118a85c
Created September 2, 2014 13:03
Working configuration file
services:
demo:
tms:
layers:
- name: ginaBdl
title: GINA BDL
sources: [gina_bdl_cache]
caches:
@brucecrevensten
brucecrevensten / gist:a16a554ee1c64d9ac475a1468e94f508
Last active April 22, 2022 13:54
Configuring Leaflet, GeoServer, GeoWebCache with custom projection

Properly configuring GeoServer / GeoWebCache with Leaflet and custom projections (Proj4Leaflet)

These instructions demonstrate the process for EPSG:3572.

Set up a Gridset for the appropriate projection.

Geoserver Admin > Tile Caching > Gridsets > New Set Name / Projection to EPSG:3572, when you tab out of the Projection box it should autocomplete a bit of information here, such as Units, Meters per Unit.

Under “Gridset Bounds,” > Compute from maximum extent of CRS. We’ll need these numbers to configure Leaflet. (An error at the top may show, “Field ‘Gridset Bounds’ is required,” ignore that).

@brucecrevensten
brucecrevensten / gist:d833d7ea52514834a5411439b2dc430d
Created June 7, 2017 03:58
Sketch for SNAP Drupal Docker build
## Local development instance with Docker
### Setup Docker containers
1. Install [Docker](https://www.docker.com/) if you have not already.
1. Grab database and files and save them to your `~/Downloads` folder as `snapdb.sql` and `files.bz2` respectively.
1. Download [Drupal 7](https://ftp.drupal.org/files/projects/drupal-7.54.tar.gz) to `~/Downloads`.