Use of RTree
-
- Posts: 4
- Joined: Mon 28 Mar 2011 06:44
Use of RTree
Hello,
I'm trying to access a sqlite/spatialite (www.gaia-gis.it/spatialite) database with dotConnect for SQLite. SpatiaLite relies on SQLites RTree module but I get an error stating RTRee module not found?
Is this SQLite feature omitted on purpose or is there some way to enable it?
Kind regards
FObermiaer
I'm trying to access a sqlite/spatialite (www.gaia-gis.it/spatialite) database with dotConnect for SQLite. SpatiaLite relies on SQLites RTree module but I get an error stating RTRee module not found?
Is this SQLite feature omitted on purpose or is there some way to enable it?
Kind regards
FObermiaer
-
- Posts: 4
- Joined: Mon 28 Mar 2011 06:44
Thanks. You may want to look atShalex wrote:We will investigate the dotConnect for SQLite compatibility with SpatiaLite and notify you about the results.
http://sharpmap.codeplex.com/
If you download the source via svn from trunk you'll find a provider for spatialite in the SharpMap.Extensions project. It currently uses System.Data.SQLite. In the WinFormSamples project, you'll find a sample database.
Cheers FObermaier
Please load the SpatiaLite dll as an extension in the following way: http://sqlite.phxsoftware.com/forums/p/1608/6913.aspx.
Here are also useful links:
http://www.gaia-gis.it/spatialite/install-windows.html
http://groups.google.com/group/spatiali ... d2da9b2ae1
http://geobabble.wordpress.com/2009/04/ ... arpmap-09/
Here are also useful links:
http://www.gaia-gis.it/spatialite/install-windows.html
http://groups.google.com/group/spatiali ... d2da9b2ae1
http://geobabble.wordpress.com/2009/04/ ... arpmap-09/
-
- Posts: 4
- Joined: Mon 28 Mar 2011 06:44
Are you saying it should work?
For the devart sqlite connection you need to set enableloadextension for the load_extension function to work at all.
The code you mentioned is not new to me, in fact I'm using the spatialite provider for sharpmap. It just happens to throw the exception that the RTree module is not found.
FObermaier
For the devart sqlite connection you need to set enableloadextension for the load_extension function to work at all.
The code you mentioned is not new to me, in fact I'm using the spatialite provider for sharpmap. It just happens to throw the exception that the RTree module is not found.
FObermaier
-
- Posts: 4
- Joined: Mon 28 Mar 2011 06:44
Sorry for the delay.
Could you please specify a sample code we should run to reproduce the error with SharpMap.Extensions.dll v 0.9.4168.30241 (assuming that we have rebuilt it with dotConnect for SQLite) against the sample.sqlite database from the WinFormSamples project? As I understood, it works with System.Data.SQLite but does not with Devart.Data.SQLite. Is this correct? Please post your code here or send it to us via our contact form.
Could you please specify a sample code we should run to reproduce the error with SharpMap.Extensions.dll v 0.9.4168.30241 (assuming that we have rebuilt it with dotConnect for SQLite) against the sample.sqlite database from the WinFormSamples project? As I understood, it works with System.Data.SQLite but does not with Devart.Data.SQLite. Is this correct? Please post your code here or send it to us via our contact form.