GeoTools Layer 1.17.0
This plug-in introduces a backend (vector) layer based on the GeoTools DataStore. This means that any type of datastore supported by GeoTools, can be accessed using this layer plugin.
GeoTools is an open source (LGPL) Java code library which provides standards compliant methods for the manipulation of geospatial data, for example to implement Geographic Information Systems (GIS). The GeoTools library implements Open Geospatial Consortium (OGC) specifications as they are developed, in close collaboration with the GeoAPI project.
Through this plugin, Geomajas supports amongst others the following formats:
- Shape files
- Databases: PostGIS, Oracle, SQL Server, JDBC, ...
GeoTools is a well known Java library which is at the heart of many open source GIS packages (e.g. GeoServer). While GeoTools has done an excellent job in creating a generic datastore interface, sometimes a Hibernate Spatial model is recommended, especially when complex domain modelling is involved. On the other hand, GeoTools currently offers support for data services like WFS or ArcSDE and complex feature modelling seems to be on their roadmap.
One thing to be aware of when using GeoTools is the fact that its features have to implement a common Feature interface, which means that general POJO objects are not allowed. This means that, unlike with the Hibernate model, one cannot use domain objects that were made in a different context. Geomajas transparently handles both types of features (GeoTools and Hibernate Spatial) by delegating feature access to a specific implementation of the FeatureModel interface for each case.
Community & Docs
Using this project in maven
<dependency> <groupId>org.geomajas.plugin</groupId> <artifactId>geomajas-server-layer-geotools-parent</artifactId> <version>1.17.0</version> </dependency>