importShapefile error
v2belleville opened this issue · comments
Could you provide sample data for this, as my test data does not show this error.
Hi, I'm having the same issue using a census shape file.
https://www2.census.gov/geo/tiger/GENZ2019/shp/cb_2019_01_puma10_500k.zip
by setting
JAVA_HOME==/usr/lib/jvm
I was able to get a new error which is progress!
Failed to invoke procedure
spatial.importShapefile
: Caused by: java.lang.IllegalArgumentException: org.geotools.styling.StyleFactory is not an ImageIO SPI class
OK, downgraded from java 11 to java 8 and now this seems to be working. This is a useful tool on ubuntu
sudo update-alternatives --config java
Thanks, @galtay, I just noticed this error for the first time last week when I inadvertently tried to run with java11. Since Neo4j Spatial only currently supports Neo4j 3.x, and Neo4j 3.x are still built using Java8, we are stuck with Java8 for now.
This particular error seems to be a symptom of geotools libraries not supporting newer Java, at least the versions of Geotools that spatial uses. I have been looking into porting spatial to neo4j 4.x, and java 11, and it looks to be a massive job due to the way transactions are handled in Neo4j 4.x. Once I've solved that, I will also need to upgrade geotools to get passed this error.