Skip to main content
Version: 2.0

GeoJSON starter

Purpose

This starter is an implementation of the RFC 7946 - The GeoJSON Format.

Configuration

Add starter dependency to your POM (version depends on the REGARDS BOM)

<dependency>
<groupId>fr.cnes.regards.framework</groupId>
<artifactId>geojson-starter</artifactId>
</dependency>

Business dependency

<dependency>
<groupId>fr.cnes.regards.framework</groupId>
<artifactId>geojson-starter</artifactId>
</dependency>

Dependency :

Autoconfiguration

Starter autoconfigures Gson to (de)serialize base objects. At the moment, only Gson can do this properly.

How to

How to use the starter

You can use default Feature class or implements your own feature extending AbstractFeature to customize your ID type and your properties wrapper.

How to build geometry

The interface and builder class IGeometry helps you building valid geometry objects.