OGC® Geopackage Encoding Standard
Total Page:16
File Type:pdf, Size:1020Kb
OGC 12-128r9 Open Geospatial Consortium Inc. Date: 2013-11-19 Reference number of this OGC® project document: OGC 12-128r9 Version: 0.9.12 Category: OGC® Encoding Standard Editor: Paul Daisey OGC® GeoPackage Encoding Standard Copyright notice Copyright © 2012.Envitia Copyright © 2012.Luciad Copyright © 2012 Sigma Bravo. Copyright © 2012 The Carbon Project. Copyright © 2012 U.S. Army Geospatial Center. Copyright © 2012 U.S. National Geospatial Intelligence Agency. The companies listed above have granted the Open Geospatial Consortium, Inc. (OGC) a nonexclusive, royalty-free, paid up, worldwide license to copy and distribute this document and to modify this document and distribute copies of the modified version. To obtain additional rights of use, visit http://www.opengeospatial.org/legal/. Warning This document is not an OGC Standard. It is distributed for review and comment. It is subject to change without notice and SHALL NOT be referred to as an OGC Standard. Recipients of this document are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation. Document type: OGC® Publicly Available Standard Document subtype: Encoding Standard Document stage: Draft Document language: English OGC 12-128r9 INTRODUCTION ........................................................................................................................................................................... V 1. BASE ................................................................................................................................................................................... 1 1.1. CORE ................................................................................................................................................................................... 1 1.1.1. SQLite Container ........................................................................................................................................................... 1 1.1.2. Spatial Reference Systems ............................................................................................................................................ 4 1.1.3. Contents ....................................................................................................................................................................... 5 2. OPTIONS ............................................................................................................................................................................. 7 2.1. FEATURES ............................................................................................................................................................................. 7 2.1.1. Simple Features SQL Introduction ................................................................................................................................ 7 2.1.2. Contents ....................................................................................................................................................................... 9 2.1.3. Geometry Encoding ...................................................................................................................................................... 9 2.1.4. SQL Geometry Types ................................................................................................................................................... 11 2.1.5. Geometry Columns ..................................................................................................................................................... 11 2.1.6. Vector Feature User Data Tables ................................................................................................................................ 13 2.2. TILES ................................................................................................................................................................................. 14 2.2.1. Tile Matrix Introduction .............................................................................................................................................. 14 2.2.2. Contents ..................................................................................................................................................................... 15 2.2.3. Zoom Levels ................................................................................................................................................................ 15 2.2.4. Tile Encoding PNG ...................................................................................................................................................... 16 2.2.5. Tile Encoding JPEG ...................................................................................................................................................... 16 2.2.6. Tile Matrix Set ............................................................................................................................................................ 16 2.2.7. Tile Matrix .................................................................................................................................................................. 18 2.2.8. Tile Pyramid User Data Tables .................................................................................................................................... 20 2.3. SCHEMA ............................................................................................................................................................................. 21 2.3.1. Schema Introduction .................................................................................................................................................. 21 2.3.2. Data Columns ............................................................................................................................................................. 21 2.3.3. Data Column Constraints ............................................................................................................................................ 22 2.4. METADATA ......................................................................................................................................................................... 25 2.4.1. Introduction ................................................................................................................................................................ 25 2.4.2. Metadata Table .......................................................................................................................................................... 25 2.4.3. Metadata Reference Table ......................................................................................................................................... 27 2.5. EXTENSION MECHANISM ....................................................................................................................................................... 29 2.5.1. Introduction ................................................................................................................................................................ 29 2.5.2. Extensions ................................................................................................................................................................... 30 3. REGISTERED EXTENSIONS ................................................................................................................................................. 32 3.1. FEATURES ........................................................................................................................................................................... 32 3.1.1. GeoPackage Geometry Types Extension .................................................................................................................... 32 3.1.2. User-Defined Geometry Types Extension ................................................................................................................... 32 3.1.3. Rtree Spatial Indexes .................................................................................................................................................. 33 3.1.4. Geometry Type Triggers ............................................................................................................................................. 34 3.1.5. SRS_ID Triggers ........................................................................................................................................................... 34 3.2. TILES ................................................................................................................................................................................. 35 3.2.1. Zoom Levels ................................................................................................................................................................ 35 3.2.2. Tile Encoding WEBP .................................................................................................................................................... 36 4. SECURITY CONSIDERATIONS ............................................................................................................................................. 36 ANNEX A CONFORMANCE / ABSTRACT TEST SUITE (NORMATIVE) ..................................................................................... 37 A.1 BASE ................................................................................................................................................................................