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
# the IP(s) on which your node server is running. I chose port 3000. | |
upstream app_geoforce { | |
server 127.0.0.1:3000; | |
} | |
upstream app_pcodes{ | |
server 127.0.0.1:3001; | |
} |
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
gdal_translate -ot UInt16 -scale -of ENVI -outsize 1025 1025 Seattle_16Int.tif seattle_heightmap.raw | |
-of ENVI means it will write out RAW | |
This works fine. However, importing this .raw file into Unity produces an Vertically inverted terrain. | |
I opened with Photoshop CS, then did Image > Flip Vertical. | |
“Save As” Photoshop RAW. Options were blank, but saving worked. | |
Loaded into Unity as a terrain setting. Then manually set the Terrain height to 75, which when walking around seems right. | |
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 - https://gist.github.com/Zverik/5757305 | |
* L.DynamicSingleTile uses L.ImageOverlay to display a single-tile layer from node-mapnik. | |
* url parameter must accept width, height and bbox. | |
*/ | |
L.DynamicSingleTile = L.ImageOverlay.extend({ | |
initialize: function (url, options) { | |
L.ImageOverlay.prototype.initialize.call(this, url, null, options); | |
}, |
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
Map { | |
background-color: #b8dee6; | |
} | |
#countries { | |
::outline { | |
line-color: #85c5d3; | |
line-width: 2; | |
line-join: round; | |
} |
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
//10.17.2013 - Ryan Whitley | |
var flow = require('flow'); | |
var pg = require('pg'), | |
common = require("../../../common"), | |
settings = require('../../../settings'); | |
//Takes in a where clause, buffers, dissolves and zonal stats. Return table of zonal stats. | |
//Arguments are: | |
//1. The points (or at least a where clause to query a particular table). | |
//2. Buffer Radius |
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 http://blog.mackerron.com/2012/06/01/postgis-2-ubuntu-12-04/ | |
mkdir -p src | |
# First install PostgreSQL 9.2, plus contributed packages and any missing prerequisites | |
# === | |
# add the Postgres PPA | |
echo 'deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main' \ |
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
@RyanWhitley To convert polygons to polylines in GRASS: | |
v.in.ogr dsn=<input>.shp out=chad | |
v.build.polylines in=chad out=chad2 | |
v.out.ogr type=boundary in=chad2 dsn=grass_chad_lines.shp | |
Roger Andre | |
9:58 AM | |
@RyanWhitley Here's how you can do it to lines: | |
v.in.ogr dsn=AdminLine2.shp out=chad | |
v.clean tool=rmdupl in=chad out=chad2 <--new step to remove dupe segments | |
v.build.polylines in=chad2 out=chad3 |
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
Trying to bulid MapboxGL Native on OSX Yosemite. | |
Following instructions here: https://github.com/mapbox/mapbox-gl-native | |
When doing this: | |
brew install pkg-config boost imagemagick | |
...response was imagemagick is already installed, but not linked. |
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
On Ubuntu 14 SpatialServer box, here's how to use the nginx-cache-purge and inspect scripts. | |
cd to nginx-cache-inspector and run: | |
sudo ./nginx-cache-inspector "india_distance" /var/cache/nginx | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder