Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
05-11-2020 07:36 AM
Uable to import shapefile
Query:
call spatial.importShapefile("file:///shapefiles/SupportStructure.shp")
Error:
import folder:
Plugin folder:
Can anyone help on this, why I am getting this error.
Thank you
05-12-2020 12:14 PM
Hi @sura-nsgindia,
kindly check if you have correct version of Jar. Also try to replace this jar with new download and then restart the server.
Also try
** call spatial.procedures;** to verify procedure is available.
I tried the same as mentioned by you with complete path of the file and it worked
call spatial.importShapefile("D:\Neo4j\ApplicationData\neo4jDatabases\database-02341e23-fad3-478a-a96c-b2020042c6ae\installation-3.5.14\import\AFG_adm1.shp")
05-13-2020 09:53 PM
Will check and get back, thanks
05-13-2020 09:55 PM
Can you comment on this:
Thanks.
05-15-2020 10:43 AM
Answered to the link. Let me know if you are able to import the file as per this post?
11-02-2020 10:31 AM
hi @intouch.vivek , I'm also having an import shapefile problem. Here is the error :
any idea how I could debug this ? the jar is the latest in the plugin repo and I just tried a 3.5.2 neo4j (in case it would make a difference from 3.5.21) but it is the same error ...
11-19-2020 05:32 AM
I have a clean installation of Neo4j 3.5.22, and just copied these two files into plugins:
apoc-3.5.0.14-all.jar
neo4j-spatial-0.26.2-neo4j-3.5.2-server-plugin.jar
And then I ran the following commands:
CALL spatial.importShapefile('import/shp/highway');
CALL spatial.layers;
CALL spatial.withinDistance('highway', point({latitude:13,longitude:56}), 10000);
All three succeeded. I got the highway shapefile as an example from the code repository. Perhaps there is something specific about your shapefile causing the error? Do you have an error messages in the neo4j.log or the debug.log files that might relate to this?
Also, where did you get the file apoc-3.5.0.14.jar
? When I look at the APOC releases page at https://github.com/neo4j-contrib/neo4j-apoc-procedures/releases I can only download the file apoc-3.5.0.14-all.jar
. Yours has no -all
in the name. I don't know if that matters, but was curious.
All the sessions of the conference are now available online