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
-- convert a grid-reference E.g. SH123456 into a northing easting geometry for postgis with SRID=27700 (OSGB36) | |
-- standing on the shoulders of... | |
-- http://www.movable-type.co.uk/scripts/latlong-os-gridref.html | |
-- https://github.com/chrisveness/geodesy/blob/master/osgridref.js [MIT] | |
-- consider this MIT licensed also. | |
CREATE OR REPLACE FUNCTION get_geom_from_grid_ref(IN grid_ref character varying) | |
RETURNS public.geometry | |
LANGUAGE 'plpgsql' | |
AS $BODY$ |
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
#!/usr/bin/env python | |
import sys | |
import boto | |
import pprint | |
del_flag = '' | |
if len(sys.argv) > 1: | |
del_flag = sys.argv[1] |