A complete SpatiaLite data provider package that includes native SQLite and SpatiaLite binaries. This is a wrapper package that depends on Altemiq.Data.Spatialite.Core.
- Native binaries included: SQLite and SpatiaLite native libraries included
- Spatial operations: Full SpatiaLite spatial function support
- Cross-platform: Works on Windows, Linux, and macOS
- Easy deployment: No manual native dependency management
using Altemiq.Data.Spatialite;
// Open a SpatiaLite database
using var connection = new SpatialiteConnection("data.db");
connection.Open();
// Initialize spatial metadata
connection.InitSpatialMetadata(SpatialMetadataMode.Wgs84);
// Query spatial data
using var command = connection.CreateCommand(
"SELECT * FROM features WHERE ST_Distance(geometry, BuildCircleMbr(0, 0, 1000)) < 500"
);
using var reader = command.ExecuteReader();- .NET Standard 2.0
- Altemiq.Data.Spatialite.Core - Core SpatiaLite functionality
- Microsoft.Data.Sqlite - SQLite data provider
- SpatiaLite - SpatiaLite native library
This project is licensed under the MIT License - see the LICENSE file for details.