0

I followed this link to install Spatialite.

How do I use the spatialite installation in my Java code? Which extension do I load for spatialite function

addGeometry() (Linux / Ubuntu)

In windows I tried this and it worked but not for Ubuntu:

stmt.execute("SELECT load_extension('libspatialite.dll')");
stmt.execute("SELECT InitSpatialMetaData()");
MarmiK
  • 5,639
  • 6
  • 40
  • 49

1 Answers1

1

You should change extension to .so (this is the Linux .dll)

Michał Szydłowski
  • 3,261
  • 5
  • 33
  • 55