DataNucleus Spatial

datanucleus-spatial provides support for persistence of many geometric/spatial datatypes. It builds on top of the datanucleus-core persistence capabilities, and is used in conjunction with the datanucleus-rdbms plugin.

Source Code

trunk can be checked out as follows

svn co https://svn.code.sf.net/p/datanucleus/code/platform/store.types.spatial/trunk store.types.spatial

Download

datanucleus-spatial is downloadable as following


Dependencies

datanucleus-spatial is dependent on the following packages of software and this differs for each mapping scenario. Please refer to the RDBMS Spatial Types Guide for more information about these scenarios.

jgeom2mysql

Package Version Description Required
datanucleus-core 3.0+ Provides logging, localisation, and other framework facilities for DataNucleus Yes
datanucleus-rdbms 3.0+ Persistence to RDBMS datastores Yes
sdoapi - Oracle SDO API, contains the JGeometry class. No
mysql-connector-java - MySQL JDBC driver. No

jgeom2oracle

Package Version Description Required
datanucleus-core 3.0+ Provides logging, localisation, and other framework facilities for DataNucleus Yes
datanucleus-rdbms 3.0+ Persistence to RDBMS datastores Yes
sdoapi - Oracle SDO API, contains the JGeometry class . No
classes12/ojdbc14 - Oracle JDBC, use classes12 for Java 1.3 and ojdbc14 for all later versions. No

jts2mysql

Package Version Description Required
datanucleus-core 3.0+ Provides logging, localisation, and other framework facilities for DataNucleus Yes
datanucleus-rdbms 3.0+ Persistence to RDBMS datastores Yes
JTS 1.6+ Java Topology Suite (JTS) No
mysql-connector-java - MySQL JDBC driver. No

jts2oracle

Package Version Description Required
datanucleus-core 3.0+ Provides logging, localisation, and other framework facilities for DataNucleus Yes
datanucleus-rdbms 3.0+ Persistence to RDBMS datastores Yes
JTS 1.6+ Java Topology Suite (JTS) No
JTSIO 1.6+ IO package for JTS No
classes12/ojdbc14 - Oracle JDBC, use classes12 for Java 1.3 and ojdbc14 for all later versions. No

jts2postgis

Package Version Description Required
datanucleus-core 3.0+ Provides logging, localisation, and other framework facilities for DataNucleus Yes
datanucleus-rdbms 3.0+ Persistence to RDBMS datastores Yes
JTS 1.6+ Java Topology Suite (JTS) No
PostGIS-JTS 1.1.6+ PostGIS JDBC driver extension for JTS types. For correct transformation of 3d-geometries you need a version newer than 1.2.0 (at the moment only available as source from SVN) No
PostgreSQL - PostgreSQL-JDBC driver No

pg2mysql

Package Version Description Required
datanucleus-core 3.0+ Provides logging, localisation, and other framework facilities for DataNucleus Yes
datanucleus-rdbms 3.0+ Persistence to RDBMS datastores Yes
PostGIS 1.1.6+ PostGIS JDBC driver and PostGIS geometries No
mysql-connector-java - MySQL JDBC driver. No

pg2postgis

Package Version Description Required
datanucleus-core 3.0+ Provides logging, localisation, and other framework facilities for DataNucleus Yes
datanucleus-rdbms 3.0+ Persistence to RDBMS datastores Yes
PostGIS 1.1.6+ PostGIS JDBC driver and PostGIS geometries No
PostgreSQL - PostgreSQL-JDBC driver No