Reply – Re: Attach shapefile on Android
Your Name
Subject
Message
or Cancel
In Reply To
Re: Attach shapefile on Android
— by moovida moovida
Ok, I have the problem.

I gave the shp driver a try and I get this exception (actually now I get the same from the CALL statement when trying to attach):

 Caused by: java.lang.NoClassDefFoundError: org.h2gis.functions.io.shp.internal.SHPDriver$1
     at org.h2gis.functions.io.shp.internal.SHPDriver.initDriverFromFile(SHPDriver.java:155)
     at org.h2gis.functions.io.shp.SHPEngine.createDriver(SHPEngine.java:47)
     at org.h2gis.functions.io.shp.SHPEngine.createDriver(SHPEngine.java:42)
     at org.h2gis.functions.io.file_table.FileEngine.createTable(FileEngine.java:60)
     at org.h2.schema.Schema.createTable(Schema.java:590)
     at org.h2.command.ddl.CreateTable.update(CreateTable.java:137)
     at org.h2.command.CommandContainer.update(CommandContainer.java:98)
     at org.h2.command.Command.executeUpdate(Command.java:258)

This is due to the fact that the driver uses some files that probably are not part of the Android JVM as for example:
import java.nio.file.DirectoryStream;
import java.nio.file.Files;
import java.nio.file.Path;

So I guess the h2gis libs are not an option in the current state.

Andrea