SQLite + SpatiaLite problems

后端 未结 2 1494
走了就别回头了
走了就别回头了 2021-02-06 05:19

I\'m trying to access a SpatiaLite from C# using System.Data.SQLite provider. When I try to load the SpatiaLite extension, I always get the

System.Data.SQLite.S         


        
相关标签:
2条回答
  • 2021-02-06 05:48

    I had the exact same problem in Java. I called System.load() for all the dependent DLLs and everything worked like a champ!

    • libproj-0.dll
    • libgeos-3-1-1.dll
    • libgeos_c-1.dll
    • libiconv2.dll
    • libcharset1.dll
    0 讨论(0)
  • 2021-02-06 06:00

    Well thanks to sqlite3.exe command line tool, I've found out that there are some additional DLLs needed for this to run:

    • libproj-0.dll
    • libgeos-3-1-1.dll
    • libgeos_c-1.dll

    You can find these on SpatiaLite's download page. Just copy them to the bin directory.

    UPDATE: one additional dll needed is libiconv2.dll

    0 讨论(0)
提交回复
热议问题