Skip to content

Instantly share code, notes, and snippets.

@gubuntu
gubuntu / SACRS.md
Last active May 12, 2021 15:30
southern African coordinate reference systems (CRS) definitions in proj4 and WKT

Use this file to get the CRS definitions you need in southern Africa, particularly South Africa, Lesotho, eSwatini, Zimbabwe and Namibia.

Most GIS software now implements the South African CRS (SACRS; incorrectly but popularly known as the "LO" system) which is based on south-oriented (or south-facing, 'west-south up') transverse mercator (TMSO). The codes for these are:

  • Hartebeesthoek94 or WGS84 datum (post 1999)
    • EPSG: all numbers from 2046 to 2055
    • ESRI (rather use EPSG): 102480 to 102489
  • Cape datum (for pre-1999 data)
    • EPSG: odd numbers from 22275 to 22293
  • ESRI (rather use EPSG): 102470 to 102479
@gubuntu
gubuntu / gist:76ab1848483f4bee5bf9
Created October 10, 2014 12:59
Carto generator make log
gavin@kartoza:~/dev/carto-generator$ make
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
clang++ -o src/gen_building_sym.o -c -I/usr/local/include -I/usr/local/include/mapnik/agg -I/usr/include -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/gdal -I/usr/include/postgresql -DHAVE_JPEG -DMAPNIK_USE_PROJ4 -DHAVE_PNG -DHAVE_TIFF -DBIGINT -DBOOST_REGEX_HAS_ICU -DLINUX -DMAPNIK_THREADSAFE -DNDEBUG -DHAVE_LIBXML2 -ansi -Wall -pthread -ftemplate-depth-300 -O3 -fno-strict-aliasing -finline-functions -Wno-inline -Wno-parentheses -Wno-char-subscripts -Wno-deprecated-declarations -DMAPNIKDIR="\"/usr/local/lib/mapnik/input\"" -Iinclude -Iagg/include src/gen_building_sym.cpp
In file included from src/gen_building_sym.cpp:1:
In file included from include/symbolizers/gen_building_sym_def.hpp:1:
In file included from include/symbolizers/gen_building_sym.hpp:4:
In file included from /usr/include/boost/optional.hpp:15:
In file included from /usr/include/boost
@gubuntu
gubuntu / gist:c18d657a27a7780a4c20
Created March 4, 2015 15:42
geonode install in Docker fails
Dockerfile
==========
FROM ubuntu:14.04
MAINTAINER Gavin Fleming<[email protected]>
RUN apt-get -f -y install software-properties-common
RUN add-apt-repository -y ppa:geonode/testing
RUN apt-get update -y
RUN apt-get -y -f install geonode
RUN paver setup
@gubuntu
gubuntu / gist:fe77b6b7e187098ee049
Last active August 29, 2015 14:17
geonode docker errors logs 13 March 2015
catalina.out
=============
geoserver start OK then uploads a raster from geonode (that doesn't appear in geonode).
http://geonode.inasafe.org/geoserver
13 Mar 13:41:31 INFO [geoserver.global] -
----------------------------------
- GEOSERVER_DATA_DIR: /var/lib/geoserver/geonode-data
----------------------------------
13 Mar 13:41:31 INFO [org.geoserver] - Loaded style 'polygon'