Running at: http://linz2osm.openstreetmap.org.nz/
Requests v0.14.0 or later
(you can install most of these through pip: use the requirements.txt file)
Pydermonkey needs to build spidermonkey-1.8.1pre, and the URL is out of date. To install:
pip install --no-install pydermonkey
spidermonkey-1.8.1pre
directory:
run hg clone http://hg.toolness.com/spidermonkey/ -u 1.8.1pre spidermonkey-1.8.1pre
python setup.py build_spidermonkey
pip install --no-download pydermonkey
make a settings_site.py file and add overrides for things like:
DATABASES
DEBUG
, TEMPLATE_DEBUG
ADMINS
, MANAGERS
MEDIA_ROOT
TEMPLATE_DIRS
SECRET_KEY
manage.py generate_datasets
to
update the app.run manage.py syncdb
to build the DB tables. Creating a user is a
good idea.
run manage.py migrate
to apply DB migrations.
run manage.py createcachetable django_cache
to add a cache table.
manage.py loaddata v16_layers
to populate the layer models.manage.py loaddata example_tags
to load some example tags for road_cl,
and some defaults for all layers.OR, to clone an existing installation
manage.py loaddata <path_to_your_downloaded_file>
Then, either way:
manage.py generate_datasets
to configure the app for the datasets and layers you've addedmanage.py runserver
../manage.py celery worker
To load some other IFF data, use the linz_topo scripts from nz-geodata-scripts to populate a PostGIS DB. Then, add it as a database in the settings file, (make sure it has _description and _srid defined).
Whenever you add a new dataset or layer, run manage.py generate_datasets
to update the app.
LINZ-2-OSM is made possible with the generous support of these organisations:
Copyright (C) 2010-2015 Koordinates Ltd.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
djangosnippets: http://djangosnippets.org/about/tos/
jQuery: Copyright 2012 jQuery Foundation and other contributors Released under the MIT license http://jquery.org/license
Bootstrap: Copyright 2012 Twitter, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.