Web framework to map unreferenced maps having a scale definition | Read-only mirror of https://github.com/sitn/historic_cadastre — Canton de Neuchâtel. Issues & pull requests at the source.
  • JavaScript 63.8%
  • HTML 30.8%
  • CSS 3.9%
  • PHP 0.9%
  • Python 0.3%
  • Other 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Michael Kalbermatten 54fe16d8e9
Merge pull request #78 from kalbermattenm/pdf
Add the PDF extension to the route
2019-03-28 11:12:54 +01:00
apache Enable A0, A1 & A2 printing 2017-10-13 15:32:35 +02:00
historic_cadastre Add the PDF extension to the route 2019-03-28 11:11:24 +01:00
jsbuild Print layout, CSS & Jsbuild 2014-02-05 11:56:46 +01:00
print Adjust PDF and element positions 2017-10-27 08:53:31 +02:00
.flake8 Add some flake conf 2017-03-29 14:15:08 +02:00
.gitignore Ignore conf files 2018-09-20 13:25:14 +02:00
.gitmodules Openlayers repository has been renamed 2017-03-30 11:06:23 +02:00
CONST_Makefile Enable A0, A1 & A2 printing 2017-10-13 15:32:35 +02:00
CONST_requirements.txt Update server side 2017-10-13 09:25:00 +02:00
CONST_vars.yaml correction affichage plan et desi yaml 2018-10-04 15:53:11 +02:00
CONST_versions.txt Enable A0, A1 & A2 printing 2017-10-13 15:32:35 +02:00
development.ini.mako Refactoring the whole project to use make 2017-03-15 10:14:50 +01:00
LICENSE Initial commit 2013-12-06 07:24:46 -08:00
production.ini.mako Refactoring the whole project to use make 2017-03-15 10:14:50 +01:00
README.md Update readme 2017-10-13 09:29:58 +02:00
setup.py Update server side 2017-10-13 09:25:00 +02:00

historic_cadastre project

Building the application

Requirements

historic_cadastre is meant to be built and used on Windows servers.

To do so, we need to be able to use "Linux" bash commands in a Windows cmd.

This can be achieved by installing some Cygwin components:

  • make from the devel folder
  • gettext-devel from the devel folder
  • wget from the web folder

Moreover, these cannot directly be used in the Cygwin bash, but have to be added to the path of the computer / server.

We recommand to add the following elements to the path (in the same order !)

  1. Path to git (something like C:\Program Files (x86)\Git\cmd)
  2. Path to Python (something like C:\Python27)
  3. Path to Python scripts (something like C:\Python27\Scripts)
  4. Path to Cygwin executables (something like C:\cygwin64\bin)

In the end, the following string should be added at the begin of the path:

C:\Program Files\Git\cmd;C:\Python27;C:\Python27\Scripts;C:\cygwin64\bin;....

Install an instance

First create an empty repository and initialize it with git and the project's repository:

cd instance_folder
git init
git remote add upstream http://github.com/sitn/historic_cadastre.git
git fetch upstream
git merge upstream/master

Then create a specific make file for this instance and run the build process:

make -f <instace_makefile>.mk build

Feel free to add project-specific things.

Flake8

It is possible to check the Python code with Flake.

To do so, one might run the following exe, here typically for the admin.py file

.build\venv\Scripts\flake8.exe historic_cadastre\views\entry.py