Skip to content

Instantly share code, notes, and snippets.

🌐
Making maps

Rowan Winsemius rowanwins

🌐
Making maps
  • Canberra, Australia
Block or report user

Report or block rowanwins

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sample.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View sample.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rowanwins
rowanwins / fc.geojson
Created Dec 18, 2018
Simplified FeatureCollection
View fc.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rowanwins
rowanwins / fc.geojson
Created Dec 18, 2018
Massive Feature Collection
View fc.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rowanwins
rowanwins / turf-shapely.py
Last active Jun 17, 2017
Test turf/boolean modules against shapely
View turf-shapely.py
from shapely.geometry import asShape
import fiona
import os
import sys
turf_dir = sys.argv[1]
predicate = sys.argv[2]
def runTestOnFile(dir, file, turfResult):
fc = fiona.open(dir + file, 'r')
@rowanwins
rowanwins / index.js
Created Sep 20, 2016
WOF post code script
View index.js
var shp = require('shpjs');
var walk = require('walk')
var fs = require('fs')
var turfArea = require('turf-area')
var turfBbox = require('turf-bbox')
var turfCentroid = require('turf-centroid')
var newSrcData = fs.readFileSync(__dirname +"/src/ABS_Postcodes.geojson", 'utf8');
newSrcData = JSON.parse(newSrcData);
@rowanwins
rowanwins / gist:97188a36a10ea3143b13
Created Mar 22, 2016
Layer toggle with layer group
View gist:97188a36a10ea3143b13
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Demo</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:600' rel='stylesheet' type='text/css'>
<style>
@rowanwins
rowanwins / gist:fae3bd7e6f9831e27b72
Created Feb 3, 2016
Tile server load testing results
View gist:fae3bd7e6f9831e27b72
//NODE, MBTILES AND EXPRESS TILE SERVER WITH 200 CONCURRENT REQUESTS FOR 20seconds
Target URL: http://localhost:7777/scene/tiles/15/29987/19801.png
Completed requests: 7568
Total errors: 0
Total time: 20.001499538 s
Requests per second: 378
Total time: 20.001499538 s
Percentage of the requests served within a certain time
50% 518 ms
90% 556 ms
View gist:60d8bac05a28c2874909
(Float("NIR.TIF") - Float("RED.TIF")) / (Float("NIR.TIF") + Float("RED.TIF"))
@rowanwins
rowanwins / gist:6e257c20138360a9f622
Created Aug 20, 2015
Visible atmospherically resistant index for Raster Calculator
View gist:6e257c20138360a9f622
("Green" - "Red")/("Green" + "Red" - "Blue")
You can’t perform that action at this time.