leveraging sqlite and arcgis · what is sqlite?-created in 2000 by d richard hipp as part of a...
TRANSCRIPT
![Page 1: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/1.jpg)
Leveraging SQLIte and ArcGISLance Shipman
![Page 2: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/2.jpg)
Introduction
- What is SQLite?
- What SQLite options are available in ArcGIS?
- Strengths and Weaknesses of each option.
- Esri Support.
- How can you leverage SQLite Databases?
![Page 3: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/3.jpg)
What is SQLite?
![Page 4: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/4.jpg)
What is SQLite?
- Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.
- May be the most installed RDBMS.
- SQLite is a public domain relational database management system contained in a C
programming library.
- It is not a client–server database engine.
- It is meant to be embedded in an application.
![Page 5: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/5.jpg)
What SQLite options are available in ArcGIS?
![Page 6: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/6.jpg)
What SQLite options are available in ArcGIS?
• SQLite
• ST_Geometry
• SpatiaLite
• GeoPackage
![Page 7: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/7.jpg)
What SQLite options are available in ArcGIS?SQLite
• Read SQLite data files as tabular data.
• Version 3.16.2
• Must have “.sqlite” as an extension
• Limited Type System
![Page 8: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/8.jpg)
What SQLite options are available in ArcGIS?
• SQL/MM Part 3 (ISO/IEC 13249-3:2006) and OGC Simple Feature Access – Part2: SQL
option (ISO 19125-2:2004)
• Must have “.sqlite” as an extension
• Enforces the ESRI type system.
ST_Geometry
![Page 9: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/9.jpg)
What SQLite options are available in ArcGIS?SpatiaLite
• Version 4.0.
• Must have “.sqlite” as an extension.
• Uses the SQLite native type system.
![Page 10: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/10.jpg)
What SQLite options are available in ArcGIS?GeoPackage
• OGC Standard
• Version 1.0 (1.0.1), 1.1 and 1.2 supported at 10.5.1/2.0
• Shares the same geometry type definition with ST_Geometry.
• Must have “.gpkg” as an extension.
• Type system defined in the standard.
• Includes Tiled Raster Support.
![Page 11: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/11.jpg)
Strengths and Weaknesses of each option.
![Page 12: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/12.jpg)
Strengths and WeaknessesStrengths
• SQLite
- Shareware.
- Light weight.
- Portable.
![Page 13: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/13.jpg)
Strengths and WeaknessesStrengths
• ST_Geometry
- Strong implementation based on standards.
- Esri type system.
- Compact geometry type.
![Page 14: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/14.jpg)
Strengths and WeaknessesStrengths
• SpatiaLite
- Popular implementation.
- Shareware.
![Page 15: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/15.jpg)
Strengths and WeaknessesStrengths
• GeoPackage
- OGC Standard
- Tiled Raster
![Page 16: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/16.jpg)
Strengths and WeaknessesWeaknesses
• SQLite
- No spatial type.
- No raster support.
- Limited type system.
![Page 17: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/17.jpg)
Strengths and WeaknessesWeaknesses
• ST_Geometry
- Esri product, not shareware or open source.
- Vector only.
![Page 18: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/18.jpg)
Strengths and WeaknessesWeaknesses
• SpatiaLite
- Shareware, but not a standard.
- Geometry type is not compact.
- Compressed geometry uses lossy compression
- SQLite native type system.
- No time type.
- No empty shape types.
![Page 19: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/19.jpg)
Strengths and WeaknessesWeaknesses
• GeoPackage
- Relatively new standard. Limited acceptance.
![Page 20: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/20.jpg)
Esri Support
![Page 21: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/21.jpg)
Esri SupportSoftware
• ArcMap, ArcCatalog (10.2.1)
• ArcGIS Pro (1.2)
• Runtime (10.2.4 java, 10.2.8 Android)
![Page 22: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/22.jpg)
Esri SupportGeneral
• Create
- CreateSQLiteDatabase Geoprocessing Tool
![Page 23: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/23.jpg)
Esri SupportVector
• Draw
• Import/Export
- Copy/Paste, FeatureClass2FeatureClass, Table2Table
• Query
• Edit only through code. No edit session.
• ST_Geometry functions
![Page 24: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/24.jpg)
Esri SupportVector – ST_Geometry
• The OGC standard that defines ST_Geometry includes a set of functions that allow you to
create, insert, update and query the ST_Geometries via SQL.
• Using the SQLite3.exe command line tool you can open a ST_Geometry database, import
the ST_Geometry dll and then execute the ST_Geometry functions.
• Select the buildings that are not completely contained within one lot.:
SELECT DISTINCT (building_id) FROM bfp, lots WHERE st_intersects (lot, footprint) = 1 AND
st_contains (lot, footprint) = 0;
![Page 25: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/25.jpg)
Esri SupportVector – ST_Geometry: Loading the extension
• In ArcGIS Desktop the ST_Geometry libraries can be found in
Desktop10.5\DatabaseSupport\SQLite\Windows32 or from my.esri.com
• To load bring up SQLite3.exe.
SQLite3 MyData.sqlite
> SELECT load_extension(‘c:\Program
Files\ESRI\Desktop10.5\DatabaseSupport\SQLite\Windows32\stgeometry_sqlite.dll','SDE_SQL_fun
cs_init’);
![Page 26: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/26.jpg)
Esri SupportRaster – GeoPackage Only
• Draw
- 10.4.1, 1.5 and before: Use Add Raster Layer.
- 10.5, 2.0: Add like any other supported raster.
• Import
- 10.4.1, 1.5 and before: Raster2GPKG
- https://github.com/Esri/raster2gpkg
- 10.5, 2.0: AddRasterToGeoPackage Geoprocessing Tool.
![Page 27: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/27.jpg)
How can you leverage SQLite Databases?
![Page 28: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/28.jpg)
How can you leverage SQLite Databases?
• Data exchange between internal or external sites
• Data exchange where shareware is a requirement.
• Data exchange where a standard is required.
![Page 29: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/29.jpg)
Conclusion
![Page 30: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/30.jpg)
Conclusion
• What is SQLite!
• What SQLiteoptions are available in ArcGIS
• Strengths and Weaknesses of each option.
• Esri Support
• How can you leverage SQLite Databases?
![Page 31: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/31.jpg)
Please Take Our Survey on the Esri Events App!
Select the session you attended
Scroll down to find the survey
Complete Answersand Select “Submit”
Download the Esri Events app and find
your event
![Page 32: Leveraging SQLIte and ArcGIS · What is SQLite?-Created in 2000 by D Richard Hipp as part of a project for the U.S. Navy.-May be the most installed RDBMS.-SQLite is a public domain](https://reader031.vdocument.in/reader031/viewer/2022013020/5e7983e12f74f86cb77cfc38/html5/thumbnails/32.jpg)