IBM Spatial Support for Db2 12 for Z/OS: User's Guide and Reference Chapter 1
Total Page:16
File Type:pdf, Size:1020Kb
IBM Spatial Support for Db2 12 for z/OS User's Guide and Reference IBM GC27-8895 Notes Before using this information and the product it supports, be sure to read the general information under "Notices" at the end of this information. Subsequent editions of this PDF will not be delivered in IBM Publications Center. Always download the latest edition from PDF format manuals for Db2 12 for z/OS (Db2 for z/OS Knowledge Center). 2021-06-08 edition This edition applies to IBM Spatial Support for DB2 12 for z/OS, part of Version 4.1 of DB2 Accessories Suite for z/OS, product number 5697-Q05, and to any subsequent releases to IBM Spatial Support for DB2 for z/OS until otherwise indicated in new editions. Make sure that you are using the correct edition for the level of the IBM Spatial Support for DB2 for z/OS offering. © Copyright International Business Machines Corporation 2007, 2021. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents About this information.......................................................................................... ix Who should read this information...............................................................................................................ix Db2 Utilities Suite for z/OS..........................................................................................................................ix Terminology and citations........................................................................................................................... ix Accessibility features for Db2 12 for z/OS...................................................................................................x How to send your comments about Db2 for z/OS documentation............................................................. x How to read syntax diagrams......................................................................................................................xi Chapter 1. IBM Spatial Support for Db2 for z/OS.....................................................1 The purpose of IBM Spatial Support for Db2 for z/OS................................................................................ 1 How data represents geographic features.................................................................................................. 2 The nature of spatial data...................................................................................................................... 3 Where spatial data comes from............................................................................................................. 3 How features, spatial information, spatial data, and geometries fit together........................................... 4 Chapter 2. About geometries.................................................................................5 Geometries...................................................................................................................................................5 Properties of geometries............................................................................................................................. 6 Types.......................................................................................................................................................6 Geometry coordinates............................................................................................................................6 X and Y coordinates................................................................................................................................7 Z coordinates.......................................................................................................................................... 7 M coordinates......................................................................................................................................... 7 Interior, boundary, and exterior............................................................................................................. 7 Simple or non-simple............................................................................................................................. 7 Closed..................................................................................................................................................... 7 Empty or not empty................................................................................................................................ 7 Minimum bounding rectangle (MBR)..................................................................................................... 7 Dimension...............................................................................................................................................8 Spatial reference system identifier........................................................................................................ 8 Chapter 3. Getting started with IBM Spatial Support for Db2 for z/OS..................... 9 System requirements for installing IBM Spatial Support for Db2 for z/OS................................................ 9 Setting up and installing spatial support.....................................................................................................9 Verifying the installation of spatial support.............................................................................................. 10 Inventory of resources supplied for your database..................................................................................10 Enabling spatial support for the first time.................................................................................................11 Enabling spatial support for migration to Db2 12.....................................................................................12 Chapter 4. Setting up spatial resources................................................................ 13 How to use coordinate systems................................................................................................................ 13 Coordinate systems..............................................................................................................................13 Geographic coordinate system............................................................................................................ 13 Projected coordinate systems..............................................................................................................17 Selecting or creating coordinate systems............................................................................................18 How to set up spatial reference systems.................................................................................................. 18 Spatial reference systems....................................................................................................................18 Deciding whether to use a default spatial reference system or create a new system.......................20 Spatial reference systems supplied with IBM Spatial Support for Db2 for z/OS............................... 20 Creating a spatial reference system.................................................................................................... 22 iii Conversion factors that transform coordinate data into integers.......................................................23 Calculating offset values...................................................................................................................... 25 Calculating scale factors...................................................................................................................... 25 Determining minimum and maximum coordinates and measures.....................................................26 Chapter 5. Setting up spatial columns.................................................................. 29 Spatial columns..........................................................................................................................................29 Spatial columns with viewable content............................................................................................... 29 Spatial data types.................................................................................................................................29 Creating spatial columns........................................................................................................................... 30 Creating inline spatial columns................................................................................................................. 31 Registering spatial columns...................................................................................................................... 33 Chapter 6. Populating spatial columns................................................................. 35 About importing spatial data..................................................................................................................... 35 Importing spatial data............................................................................................................................... 36 Importing shape data to a new or existing table.................................................................................36 Chapter 7. Using indexes to access spatial data....................................................37 Spatial indexes...........................................................................................................................................37