neo4j-contrib / spatial

Neo4j Spatial is a library of utilities for Neo4j that faciliates the enabling of spatial operations on data. In particular you can add spatial indexes to already located data, and perform spatial operations on the data like searching for data within specified regions or within a specified distance of a point of interest. In addition classes are provided to expose the data to geotools and thereby to geotools enabled applications like geoserver and uDig.
http://neo4j-contrib.github.io/spatial
Other
781 stars 192 forks source link

Can not work on jdk11 #351

Open codingmiao opened 5 years ago

codingmiao commented 5 years ago

Can not running this code on jdk11

            ShapefileImporter importer = new ShapefileImporter(graphDb);
            importer.importFile("xxx/highway.shp", "layer_roads");

error message: org.geotools.styling.StyleFactory is not an ImageIO SPI class

craigtaverner commented 5 years ago

Perhaps we need to depend on newer versions of geotools?

mprins commented 5 years ago

Geotools 21 is fully Java 11 compliant: https://geotoolsnews.blogspot.com/2019/03/geotools-210-released.html

Since the currently used version is 14.4 this is a non-trivial upgrade, see also: http://docs.geotools.org/latest/userguide/welcome/upgrade.html