-
Notifications
You must be signed in to change notification settings - Fork 8
/
README.txt
57 lines (45 loc) · 1.84 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
MetaCarta Labs Rectifier
========================
The MetaCarta Labs Rectifier is a Django-based server and
OpenLayers-based client which allows you to upload maps,
and transform them to match the real world.
To setup:
* Install Django
* Install PIL
* Install GDAL and MapServer, with Python bindings
* Make sure gdalinfo, gdal_translate, etc. are on the default path.
Then:
* Edit paths at the top of settings.py
* Edit the paths at the top of warpviavrt.sh to match
* python manage.py syncdb
* python manage.py runserver
Notes in 2019
-------------
This application was tested (in 2019) to run on Django 1.1. (Yes, that's
1.1, not 1.10.) I know this is ancient. There are no immediate plans to
update this support. The approximate setup steps above should still
work, though some steps were left out -- e.g. you also need to install
simplejson.
For 2019, approximate steps for installation on an Ubuntu 18.04 LTS
installation:
apt install sqlite3 cgi-mapserver python-mapscript python-gdal \
python-pil virtualenv gdal-bin
git clone https://github.com/crschmidt/labs-rectifier rectifier
cd rectifier
virtualenv env --system-site-packages
# needed because you need the Ubuntu python-gdal installation, not
# one you install via PIL, due to version mismatches.
source env/bin/activate
pip install Django==1.1.4
mkdir db/
python manage.py syncdb
python manage.py runserver 0.0.0.0 8000
I should note that in reviewing this software, the call out to
scripts/warpviavrt.sh seems dangerous to 2019-me. It's possible that
this is safe, but I would recommend convincing yourself that there's no
shell escape possibilities here before running on a server that you
think might matter.
Credits
-------
The MetaCarta Labs Rectifier is available under a Clear BSD license,
from MetaCarta Labs. Copyright 2006-2009.