Skip to content

5.0 Integrates H2GIS into your project

Bocher edited this page Mar 9, 2018 · 4 revisions

If you are developing your own project/software and wants to integrates H2GIS as a dependency, you may follow this documentation.

In a MAVEN project

In your pom.xml file, add the following lines for used the H2GIS SQL Part functions.

<dependency>
    <groupId>org.orbisgis</groupId>
    <artifactId>h2gis-functions</artifactId>
    <version>XXX-VERSION</version>
</dependency>

If you want to use the all H2GIS functions (SQL Part and extended functions), please add h2gis-ext.

<dependency>
    <groupId>org.orbisgis</groupId>
    <artifactId>h2gis-ext</artifactId>
    <version>XXX-VERSION</version>
</dependency>

Don't forget to replace the XXX-VERSION by the H2GIS release number.

Add manually the dependencies

Go to https://github.com/orbisgis/h2gis/releases to download all JARS files with their dependencies and add them to the class path of your program or IDE.