Skip to content
klaujesi edited this page May 8, 2018 · 3 revisions

Welcome to the jvectormap wiki!

Converter Up & Running on Windows 10 (x64)

  • Install Python 2.7. This is the most widely used version, tons of plugins, wikis, forums.-

https://www.python.org/downloads/

  • Install Microsoft C++ Compiler for Python

https://www.microsoft.com/en-us/download/details.aspx?id=44266

Open CMD

  • Update PIP ($PYTHON_FOLDER$/Scripts)

    python -m pip install --upgrade pip

Python's Library: https://www.lfd.uci.edu/~gohlke/pythonlibs

  • Download & Install GDAL

    pip.exe install GDAL-1.11.4-cp27-none-win_amd64.whl

  • Download & Install Numpy

    pip.exe install numpy-1.14.3+mkl-cp27-cp27m-win_amd64.whl

  • Download & Install Shapely

    pip.exe install Shapely-1.6.4.post1-cp27-cp27m-win_amd64.whl

  • Install booleano

    easy_install booleano

  • Change processor.py - Line 13

    this:

    • from booleano.parser import Grammar, EvaluableParseManager, SymbolTable, Bind

    to:

    • from booleano.parser import Grammar

      from booleano.parser.core import EvaluableParseManager

      from booleano.parser.scope import SymbolTable, Bind

  • Create configuration file input_file.json

      [
      {
          "name": "read_data",
          "file_name": "YOUR_SHAPE_FILE.shp"
      },
      {
          "name": "write_data",
          "format": "jvectormap",
          "file_name": "YOUR_OUTPUT_FILE",
          "params": {
          "code_field": "CODE_FIELD_FROM_SHP",
          "name_field": "NAME_FIELD_FROM_SHP",
          "name": "OBJET_INSIDE_OUTPUT_FILE"
          }
      }
      ]`
    
  • Run the converter

    python processor.py input_file.json

Clone this wiki locally