Contents
What is Spatialite layer?
SpatiaLite is a spatial extension to SQLite, providing vector geodatabase functionality. It is similar to PostGIS, Oracle Spatial, and SQL Server with spatial extensions, although SQLite/SpatiaLite aren’t based on client-server architecture: they adopt a simpler personal architecture.
How do I install Spatialite on Windows?
Note: This was tested on Windows 10.
- Download the zip file which contains the spatialite binaries.
- Extract the contents of the downloaded zip file to a directory called C:\Program Files (x86)\Spatialite .
- Once the installer is finished, add the directory C:\Program Files (x86)\Spatialite to your system path.
What is a SpatiaLite database?
SpatiaLite is an SQLite database engine with spatial functions added. SQLite is a Database Management System (DBMS) which is simple, robust, easy to use and very lightweight. Each SQLite database is simply a file. You can freely copy it, compress it, and port it between Windows, Linux, MacOs etc.
What do you need to know about SpatiaLite?
SpatiaLite sweetens this little database by allowing you to store geometries and query them with spatial functions similar to what you would find in PostgreSQL/PostGIS, Microsoft SQL Server 2008, MySQL, IBM DBII, Oracle Locator/Spatial.
Can a SpatiaLite table be created at the same time as a geometry column?
SpatiaLite follows an approach very closely related to the one adopted by PostgreSQL/PostGIS; i.e. creating a Geometry-type at the same time the corresponding table is created isn’t allowed. You always must first create the table, then adding the Geometry-column in a second time and as a separate step.
What’s the function of addgeometrycolumn in SpatiaLite?
AddGeometryColumn() is intended to create a new, empty column. RecoverGeometryColumn() is intended to recover in a second time an already existing ( and populated) column. Compatibility issues between different versions SpatiaLite isn’t eternally immutable. Like any other human artifact and any other software package…
How to load Esri shape data into SpatiaLite?
Most if not all MassGIS data is in this particular projection. The easiest data to load into SpatiaLite is to use the ESRI shape data loader packaged with the SpatiaLite gui. From the SpatiaLite gui –> File -> Load Shape file and browse for TOWNS_POLY.shp and type in 26986 for SRID. Type in the_geom for field name.