Skip to content

Instantly share code, notes, and snippets.

@sevko
sevko / README.md
Last active November 6, 2019 17:28
Import Quattroshapes into PostgreSQL.

import quattroshapes into PostgreSQL

The import_quattroshapes_pgsql.sh shell-script will import all Quattroshapes shapefiles into a PostgreSQL database. The process has some gotchas and is generally painful to do manually. Before running the script, ensure that you are logged in as a user with permissions to access/write to PostgreSQL. Then:

bash import_quattroshapes_pgsql.sh

Note that the script will create a Postgres table quattroshapes, and download all Quattroshapes shapefiles into

@missinglink
missinglink / build.sh
Last active December 11, 2016 04:24
Pelias Build Script
#!/bin/bash
# Dependencies
for dep in 'git' 'wget' 'curl'; do
if [ ! `which $dep` ]; then
echo "$dep required, please install it and try again";
exit 1;
fi
done
@aaronlidman
aaronlidman / gist:2691527
Created May 14, 2012 02:55
ogr2ogr 900913
ogr2ogr [output] [input] -skipfailures -t_srs EPSG:900913 -clipsrc -180 -85.0511 180 85.0511
@rmarianski
rmarianski / anonstruct.c
Created December 29, 2014 15:41
Embed structures in c
#include <stdio.h>
typedef struct point {
int x, y;
} point;
typedef struct point3d {
struct point;
int z;
} point3d;
@hkrishna
hkrishna / gist:d0a3ffab8160f1ddef0d
Last active August 29, 2015 14:08
Set up Pelias (Quick and Dirty)

mkdir pelias

Schema

git clone git@github.com:pelias/schema.git
npm install

install plugin

(if you used homebrew to install elasticsearch it should be /usr/local/Cellar/elasticsearch)