Skip to content

4.4 Use H2GIS with Python

Gwendall Petit edited this page Feb 27, 2018 · 15 revisions

Introduction

The following sample demonstrate the use of the Python scripting language to command the execution of H2GIS. The advantage is the ability to run it on dedicated server without X11.

Requirements:

  • To perform H2GIS, you have to install Java from version 7 (Greater is ok)

Install H2GIS

To install H2GIS, follow this steps:

  • Download the latest H2GIS web interface on the home page, unzip it and finally run the jar called h2-dist. Then click on Connect in the web interface.
  • For Command-line gurus, just execute the following commands:
~ $ wget https://github.com/orbisgis/h2gis/releases/download/v1.3.2/h2gis-dist-1.3.2-bin.zip -O h2gis.zip
~ $ unzip h2gis.zip
~ $ cd h2gis-standalone
~/h2gis-standalone $ java -jar h2-dist-1.2.3.jar

Execute H2GIS instructions thanks to Python commands