SQL Anywhere Spatial Data Company

Total Page:16

File Type:pdf, Size:1020Kb

SQL Anywhere Spatial Data Company PUBLIC SQL Anywhere Server Document Version: 17 – 2020-12-11 SQL Anywhere Spatial Data company. All rights reserved. All rights company. affiliate THE BEST RUN 2020 SAP SE or an SAP SE or an SAP SAP 2020 © Content 1 SQL Anywhere Server - Spatial Data Support.......................................4 1.1 Spatial Data.................................................................4 Spatial Reference Systems (SRS) and Spatial Reference Identifiers (SRID)..................7 Units of Measure...........................................................9 Support for Spatial Data.....................................................11 Recommended Reading on Spatial Topics........................................ 22 Creating a Spatial Column (SQL Central).........................................22 Creating a Spatial Column (SQL)...............................................25 Indexes on Spatial Columns..................................................26 Spatial Data Type Syntax.................................................... 27 How to Create Geometries................................................... 31 Viewing Spatial Data as Images (Interactive SQL)...................................32 Viewing Spatial Data as Images (Spatial Viewer)....................................34 Loading Spatial Data from a Well Known Text (WKT) File..............................36 Creating a Unit of Measure...................................................40 Creating a Spatial Reference System............................................41 Advanced Spatial Topics.....................................................43 Tutorial: Experimenting with the Spatial Features...................................56 1.2 Spatial Types and Functions.....................................................70 ST_CircularString Type......................................................71 ST_CompoundCurve Type................................................... 81 ST_Curve Type........................................................... 88 ST_CurvePolygon Type......................................................97 ST_GeomCollection Type....................................................112 ST_Geometry Type........................................................122 ST_LineString Type.......................................................308 ST_MultiCurve Type.......................................................318 ST_MultiLineString Type....................................................329 ST_MultiPoint Type....................................................... 336 ST_MultiPolygon Type..................................................... 343 ST_MultiSurface Type..................................................... 352 ST_Point Type...........................................................366 ST_Polygon Type.........................................................391 ST_SpatialRefSys Type.....................................................404 ST_Surface Type......................................................... 415 Spatial Compatibility Functions...............................................422 SQL Anywhere Spatial Data 2 PUBLIC Content List of All Supported Methods................................................470 List of All Supported Constructors.............................................481 List of Static Methods..................................................... 482 List of Aggregate Methods..................................................485 List of Set Operation Methods................................................486 List of Spatial Predicates................................................... 487 SQL Anywhere Spatial Data Content PUBLIC 3 1 SQL Anywhere Server - Spatial Data Support This book describes the SQL Anywhere spatial data support and how the spatial features can be used to generate and analyze spatial data. The following image represents the distributions of cities and towns across the United States and is one example of the interesting operations you can perform on spatial data. In this section: Spatial Data [page 4] Spatial data is data that describes the position, shape, and orientation of objects in a defined space. Spatial Types and Functions [page 70] The spatial data types can be considered like data types or classes. Each spatial data type has associated methods and constructors you use to access the data. 1.1 Spatial Data Spatial data is data that describes the position, shape, and orientation of objects in a defined space. Spatial data is represented as 2D geometries in the form of points, curves (line strings and strings of circular arcs), and polygons. For example, the following image shows the state of Massachusetts, representing the union of polygons representing ZIP code regions. SQL Anywhere Spatial Data 4 PUBLIC SQL Anywhere Server - Spatial Data Support Two common operations performed on spatial data are calculating the distance between geometries, and determining the union or intersection of multiple objects. These calculations are performed using predicates such as intersects, contains, and crosses. The spatial data documentation assumes you already have some familiarity with spatial reference systems and with the spatial data you intend to work with. Note Spatial data support for 32-bit Windows and 32-bit Linux requires a CPU that supports SSE2 instructions. This support is available with Intel Pentium 4 or later (released in 2001) and AMD Opteron or later (released in 2003). The software provides storage and data management features for spatial data, allowing you to store information such as geographic locations, routing information, and shape data. These information pieces are stored as points and various forms of polygons and lines in columns defined with a corresponding spatial data type (such as ST_Point and ST_Polygon). You use methods and constructors to access and manipulate the spatial data. The software also provides a set of SQL spatial functions designed for compatibility with other products. Example Spatial data support lets application developers associate spatial information with their data. For example, a table representing companies could store the location of the company as a point, or store the delivery area for the company as a polygon. This could be represented in SQL as: CREATE TABLE Locations( ID INT, ManagerName CHAR(16), StoreName CHAR(16), Address ST_Point, DeliveryArea ST_Polygon ) SQL Anywhere Spatial Data SQL Anywhere Server - Spatial Data Support PUBLIC 5 The spatial data type ST_Point in the example represents a single point, and ST_Polygon represents an arbitrary polygon. With this schema, the application could show all company locations on a map, or find out if a company delivers to a particular address using a query similar to the following: CREATE VARIABLE @pt ST_Point; SET @pt = ST_Geometry::ST_GeomFromText( 'POINT(1 1)' ); SELECT * FROM Locations WHERE DeliveryArea.ST_Contains( @pt ) = 1 In this section: Spatial Reference Systems (SRS) and Spatial Reference Identifiers (SRID) [page 7] In the context of spatial databases, the defined space in which geometries are described is called a spatial reference system (SRS). Units of Measure [page 9] Geographic features can be measured in degrees of latitude, radians, or other angular units of measure. Support for Spatial Data [page 11] There are several spatial data types supported by the software. Recommended Reading on Spatial Topics [page 22] Consider the following resources for learning about spatial data. Creating a Spatial Column (SQL Central) [page 22] Add spatial data to any table by adding a column that supports spatial data. Creating a Spatial Column (SQL) [page 25] Add spatial data to any table by adding a column that supports spatial data. Indexes on Spatial Columns [page 26] When you create spatial index, do not include more than one spatial column in the index, and position the spatial column last in the index definition. Spatial Data Type Syntax [page 27] The SQL/MM standard defines spatial data support in terms of user-defined extended types (UDTs) built on the ANSI/SQL CREATE TYPE statement. How to Create Geometries [page 31] There are several methods for creating geometries in a database. Viewing Spatial Data as Images (Interactive SQL) [page 32] View a geometry as an image using the Spatial Preview tab to understand what the data in the database represents. Viewing Spatial Data as Images (Spatial Viewer) [page 34] View multiple geometries as an image to understand what the data in the database represents using the Spatial Viewer. Loading Spatial Data from a Well Known Text (WKT) File [page 36] Add spatial data to a table by using a Well Known Text file (WKT) that contains text that can be used to load spatial data into a database and be represented as geometry. Creating a Unit of Measure [page 40] Create a unit of measure that is appropriate for your data. Creating a Spatial Reference System [page 41] SQL Anywhere Spatial Data 6 PUBLIC SQL Anywhere Server - Spatial Data Support Create a spatial reference system (SRS) that uses an existing one as a template on which to base your settings using the Create Spatial Reference System Wizard. Advanced Spatial Topics [page 43] Several topics are provided for a more in-depth understanding of spatial data. Tutorial: Experimenting with the Spatial Features [page 56] This tutorial allows you to experiment with the spatial features. Related Information Supported Spatial Data Types and Their Hierarchy [page 11] Spatial Compatibility Functions [page 422] 1.1.1 Spatial Reference Systems
Recommended publications
  • Semantic Mapping Between IAI Ifcxml and FIATECH AEX Models for Centrifugal Pumps
    NISTIR 7223 Semantic Mapping Between IAI ifcXML and FIATECH AEX Models for Centrifugal Pumps E.F. Begley M.E. Palmer K.A. Reed NISTIR 7223 Semantic Mapping Between IAI ifcXML and FIATECH AEX Models for Centrifugal Pumps E.F. Begley M.E. Palmer K.A. Reed Building Environment Division Building and Fire Research Laboratory May 2005 U.S. DEPARTMENT OF COMMERCE Carlos M. Gutierrez, Secretary TECHNOLOGY ADMINISTRATION Phillip J. Bond, Under Secretary of Commerce for Technology NATIONAL INSTITUTE OF STANDARDS AND TECHNOLOGY Hratch G. Semerjian, Acting Director TABLE OF CONTENTS 1. INTRODUCTION ..................................................................................................................................................2 1.1 WHAT IS XML? ...................................................................................................................................................2 1.2 INTERNATIONAL ALLIANCE FOR INTEROPERABILITY AND THE INDUSTRY FOUNDATION CLASSES.......................4 1.3 IFCXML...............................................................................................................................................................5 1.4 IFC USE CASES....................................................................................................................................................6 1.5 FIATECH AND THE AEX PROJECT......................................................................................................................8 1.6 AEX USE CASES..................................................................................................................................................9
    [Show full text]
  • Guide for the Use of the International System of Units (SI)
    Guide for the Use of the International System of Units (SI) m kg s cd SI mol K A NIST Special Publication 811 2008 Edition Ambler Thompson and Barry N. Taylor NIST Special Publication 811 2008 Edition Guide for the Use of the International System of Units (SI) Ambler Thompson Technology Services and Barry N. Taylor Physics Laboratory National Institute of Standards and Technology Gaithersburg, MD 20899 (Supersedes NIST Special Publication 811, 1995 Edition, April 1995) March 2008 U.S. Department of Commerce Carlos M. Gutierrez, Secretary National Institute of Standards and Technology James M. Turner, Acting Director National Institute of Standards and Technology Special Publication 811, 2008 Edition (Supersedes NIST Special Publication 811, April 1995 Edition) Natl. Inst. Stand. Technol. Spec. Publ. 811, 2008 Ed., 85 pages (March 2008; 2nd printing November 2008) CODEN: NSPUE3 Note on 2nd printing: This 2nd printing dated November 2008 of NIST SP811 corrects a number of minor typographical errors present in the 1st printing dated March 2008. Guide for the Use of the International System of Units (SI) Preface The International System of Units, universally abbreviated SI (from the French Le Système International d’Unités), is the modern metric system of measurement. Long the dominant measurement system used in science, the SI is becoming the dominant measurement system used in international commerce. The Omnibus Trade and Competitiveness Act of August 1988 [Public Law (PL) 100-418] changed the name of the National Bureau of Standards (NBS) to the National Institute of Standards and Technology (NIST) and gave to NIST the added task of helping U.S.
    [Show full text]
  • International Standard @ 1000
    International Standard @ 1000 INTERNATIONAL ORGANIZATION FOR STANDARDIZATIONoME~YHAPOLIHAROPTAHMSAUMR no CTAHAAPTM3AUHMaRGANISATION INTERNATIONALE DE NORMALISATION L SI units and recommendations for the use of their multiples and of certain other units Unités SI et recommandations pour l'emploi de leurs multiples et de certaines autres unités Second edition - 1981-02-15iTeh STANDARD PREVIEW (standards.iteh.ai) ISO 1000:1981 https://standards.iteh.ai/catalog/standards/sist/a63c4770-3eda-4cd9-9c90- c032a9b11787/iso-1000-1981 UDC : : Ref. No. IS0 (E) 1 53.081 003.62 004.1 IOOO-1981 Descriptors : units of measurement, metric system, multiples, international system of units, utilisation s Price based on 14 pages Foreword IS0 (the International Organization for Standardization) is a worldwide federation of national standards institutes (IS0 member bodies). The work of developing Inter- national Standards is carried out through IS0 technical committees. Every member body interested in a subject for which a technical committee has been set up has the right to be represented on that committee. International organizations, governmental and non-governmental, in liaison with ISO, also take part in the work. Draft International Standards adopted by the technical committees are circulated to the member bodies for approval before their acceptance as International Standards by the IS0 Council. International Standard IS0 loo0 was idevelopedTeh SbyT TechnicalAND CommitteeARD ISO/TC PR 12,E VIEW Quantities, units, symbols, conversion factors and( sconversiontand atables.rd s.iteh.ai) This second edition was submitted directly to the IS0 Council, in accordance with clause 5.10.1 of part 1 of the Directives for the technical workIS Oof 1ISO.000: 1It9 cancels81 and replaces the first edition (i.e.
    [Show full text]
  • INSPIRE Generic Conceptual Model
    INSPIRE Infrastructure for Spatial Information in Europe INSPIRE Generic Conceptual Model Title D2.5: Generic Conceptual Model, Version 3.4rc2 Status Version for Annex II/III data specifications v3.0rc2 Creator Drafting Team "Data Specifications" Date 2012-06-15 Subject Generic Conceptual Model of the INSPIRE data specifications Publisher Drafting Team "Data Specifications" Type Text Description Generic Conceptual Model of the INSPIRE data specifications Contributor Members of the INSPIRE Drafting Team "Data Specifications", INSPIRE Spatial Data Interest Communities & Legally Mandated Organisations, INSPIRE Consolidation Teams and other Drafting Teams Format MS Word (doc) Source Drafting Team "Data Specifications" Rights Public Identifier D2.5_v3.4rc2.docx Language En Relation n/a Coverage Project duration Table of contents Foreword ................................................................................................................................................ 6 Introduction ........................................................................................................................................... 8 1 Scope ............................................................................................................................................. 11 2 Normative references ................................................................................................................... 11 3 Terms and abbreviations ............................................................................................................
    [Show full text]
  • Download and Execution, Along with Metadata That Dr
    Table of Contents Preface 5 Purpose and Membership 7 Ecma's role in International Standardization 9 Organization of Ecma International* 10 General Assembly 13 Ordinary members 14 Associate members 16 SME members 17 SPC members 18 Not-for-Profit members 19 Technical Committees 21 Index of Ecma Standards 57 Ecma Standards and corresponding International and European Standards 61 Technical Reports 81 List of Representatives 84 Ecma By-laws 139 Ecma Rules 146 Code of Conduct in Patent Matters 151 Withdrawn Ecma Standards and Technical Reports 153 History of Ecma International 165 Past Presidents / Secretary General 166 * Often called Ecma, or ECMA (in the past), short for Ecma International. - 3 - Preface Information Technology, Telecommunications and Consumer Electronics are key factors in today's economic and social environment. Effective interchange both of commercial, technical, and administrative data, text and images and of audiovisual information is essential for the growth of economy in the world markets. Through the increasing digitalization of information technology, telecommunications and consumer electronics are getting more and more integrated. Open Systems and Distributed Networks based on worldwide recognized standards will not only provide effective interchange of information but also help to remove technical barriers to trade. In particular harmonized standards are recognized as a prerequisite for the establishment of the European economic area. From 1961 until 1994, ECMA (European Computer Manufacturers Association), then Ecma International (Ecma, for short) has actively contributed to worldwide standardization in information technology, communications and consumer electronics (ICT and CE). More than 380 Ecma Standards and 90 Technical Reports of high quality have been published.
    [Show full text]
  • Butcher's Copy-Editing
    BUTCHER’S COPY-EDITING Judith Butcher, Caroline Drake and Maureen Leach BUTCHER’S COPY-EDITING The Cambridge Handbook for Editors, Copy-editors and Proofreaders Fourth edition, fully revised and updated cambridge university press Cambridge, New York, Melbourne, Madrid, Cape Town, Singapore, São Paulo Cambridge University Press The Edinburgh Building, Cambridge cb2 2ru, UK Published in the United States of America by Cambridge University Press, New York www.cambridge.org Information on this title: www.cambridge.org/9780521847131 © Cambridge University Press 1975, 1981, 1992, 2006 This publication is in copyright. Subject to statutory exception and to the provision of relevant collective licensing agreements, no reproduction of any part may take place without the written permission of Cambridge University Press. First published in print format 2006 isbn-13 978-0-511-25039-2 eBook (NetLibrary) isbn-10 0-511-25039-8 eBook (NetLibrary) isbn-13 978-0-521-84713-1 hardback isbn-10 0-521-84713-3 hardback Cambridge University Press has no responsibility for the persistence or accuracy of urls for external or third-party internet websites referred to in this publication, and does not guarantee that any content on such websites is, or will remain, accurate or appropriate. Contents List of illustrations viii 4 Illustrations 69 Preface to the fourth edition ix 4.1 What needs to be done 75 Preface to the third edition x 4.2 Line illustrations 80 Preface to the second edition xii 4.3 Maps 85 Preface to the first edition xii 4.4 Graphs 88 Acknowledgements
    [Show full text]
  • INSPIRE Generic Conceptual Model
    INSPIRE Infrastructure for Spatial Information in Europe INSPIRE Generic Conceptual Model Title D2.5: Generic Conceptual Model, Version 3.4rc24rc3 Status Version for Annex II/III data specifications v3.0rc20rc3 Creator Drafting Team "Data Specifications" Date 2012-06-152013-04-05 Subject Generic Conceptual Model of the INSPIRE data specifications Publisher Drafting Team "Data Specifications" Type Text Description Generic Conceptual Model of the INSPIRE data specifications Contributor Members of the INSPIRE Drafting Team "Data Specifications", INSPIRE Spatial Data Interest Communities & Legally Mandated Organisations, INSPIRE Consolidation Teams and other Drafting Teams Format MS Word (doc)Portable document format (pdf) Source Drafting Team "Data Specifications" Rights Public Identifier D2.5_v3.4rc2.docxD2.5_v3.4rc3 Language En Relation n/a Coverage Project duration INSPIRE Data Specifications Reference: Compare Result 2 Generic Conceptual Model 2013-04-05 Page I Table of contents Foreword ............................................................................................................................................1 Introduction .........................................................................................................................................3 1 Scope ...........................................................................................................................................6 2 Normative references ....................................................................................................................6
    [Show full text]
  • Recommended Practice for the Use of Metric (SI) Units in Building Design and Construction NATIONAL BUREAU of STANDARDS
    <*** 0F ^ ££v "ri vt NBS TECHNICAL NOTE 938 / ^tTAU Of U.S. DEPARTMENT OF COMMERCE/ 1 National Bureau of Standards ^^MMHHMIB JJ Recommended Practice for the Use of Metric (SI) Units in Building Design and Construction NATIONAL BUREAU OF STANDARDS 1 The National Bureau of Standards was established by an act of Congress March 3, 1901. The Bureau's overall goal is to strengthen and advance the Nation's science and technology and facilitate their effective application for public benefit. To this end, the Bureau conducts research and provides: (1) a basis for the Nation's physical measurement system, (2) scientific and technological services for industry and government, (3) a technical basis for equity in trade, and (4) technical services to pro- mote public safety. The Bureau consists of the Institute for Basic Standards, the Institute for Materials Research, the Institute for Applied Technology, the Institute for Computer Sciences and Technology, the Office for Information Programs, and the Office of Experimental Technology Incentives Program. THE ENSTITUTE FOR BASIC STANDARDS provides the central basis within the United States of a complete and consist- ent system of physical measurement; coordinates that system with measurement systems of other nations; and furnishes essen- tial services leading to accurate and uniform physical measurements throughout the Nation's scientific community, industry, and commerce. The Institute consists of the Office of Measurement Services, and the following center and divisions: Applied Mathematics — Electricity
    [Show full text]
  • Download and Mr
    Table of Contents PrefaceU 5 PurposeU and Membership 7 Ecma'sU role in International Standardization 9 OrganizationU of Ecma International* 10 GeneralU Assembly 13 OrdinaryU members 14 UAssociate members 15 SMEU members 16 SPCU members 17 Not-for-ProfitU members 18 TechnicalU Committees 19 IndexU of Ecma Standards 47 EcmaU Standards and corresponding International and European Standards 51 TechnicalU Reports 69 ListU of Representatives 72 EcmaU By-laws 105 EcmaU Rules 112 CodeU of Conduct in Patent Matters 117 WithdrawnU Ecma Standards and Technical Reports 119 HistoryU of Ecma International 131 PastU Presidents / Secretary General 132 * Often called Ecma, or ECMA (in the past), short of Ecma International. - 3 - Preface Information Technology, Telecommunications and Consumer Electronics are key factors in today's economic and social environment. Effective interchange both of commercial, technical, and administrative data, text and images and of audiovisual information is essential for the growth of economy in the world markets. Through the increasing digitalization of information technology, telecommunications and consumer electronics are getting more and more integrated. Open Systems and Distributed Networks based on worldwide recognized standards will not only provide effective interchange of information but also help to remove technical barriers to trade. In particular harmonized standards are recognized as a prerequisite for the establishment of the European economic area. Since 1961, Ecma has actively contributed to worldwide standardization
    [Show full text]
  • Technical Standards Board Standard
    TECHNICAL REV. STANDARDS TSB 003 MAY1999 BOARD Issued 1965-06 400 Commonwealth Drive, Warrendale, PA 15096-0001 STANDARD Revised 1999-05 Superseding TSB 003 JUN92 Submitted for recognition as an American National Standard Rules for SAE Use of SI (Metric) Units Foreword—SI denotes The International System of Units (Le Système International d’Unités). SI was established in 1960, under the Treaty of the Meter, by Resolutions and Recommendations of the General Conference on Weights and Measures (Conférence Générale des Poids et Mesures, CGPM) and the International Committee for Weights and Measures (Comité International des Poids et Mesures, CIPM) on The International System of Units. The abbreviation "SI" is used in all languages. In 1969, the SAE Board of Directors issued a directive that "SAE will include SI units in SAE Standards and other technical reports." During the ensuing several decades, SAE metric policy evolved and implementation progressed. The SAE’s current metric policy is, "Operating Boards shall not use any weights and measures system other than metric (SI), except when conversion is not practical, or where a conflicting world industry practice exists." Principal driving forces for SAE metrication were: worldwide movement to metric units; enactment of United States Federal metric legislation and the resultant national metrication activity; the international trend in industry and business throughout the world, and the growing international scope of SAE. Currently, the widespread, strong support for international standards harmonization is another key motivating factor in the global metrication movement. TSB 003 (formerly SAE J916) has been updated periodically, to reflect SAE metric policy evolution—as well as developments in the specific, formal content of SI; and in the correct, consistent usage and application of SI...which sometimes is referred to as "the modern version of the metric measurement system." The content of TSB 003 is consistent with international and U.S.
    [Show full text]
  • ISO-80000-1.Pdf
    INTERNATIONAL ISO STANDARD 80000-1 First edition 2009-11-15 Quantities and units Part 1: General Grandeurs et unités Partie 1: Généralités Reference number ISO 80000-1:2009(E) Provided by : www.spic.ir © ISO 2009 ISO 80000-1:2009(E) PDF disclaimer This PDF file may contain embedded typefaces. In accordance with Adobe's licensing policy, this file may be printed or viewed but shall not be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In downloading this file, parties accept therein the responsibility of not infringing Adobe's licensing policy. The ISO Central Secretariat accepts no liability in this area. Adobe is a trademark of Adobe Systems Incorporated. Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation parameters were optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below. COPYRIGHT PROTECTED DOCUMENT © ISO 2009 All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISO's member body in the country of the requester. ISO copyright office Case postale 56 • CH-1211 Geneva 20 Tel. + 41 22
    [Show full text]
  • Standards for Enabling Trade— Mapping and Gap Analysis Study
    Standards for Enabling Trade— Mapping and Gap Analysis Study An IA-CEPA Early Outcomes Initiative November 2017 Standards For Enabling Trade—Mapping and Gap Analysis Study 2 An IA-CEPA Early Outcomes Initiative – November 2017 Contents ListofFigures..............................................................................................................3 Abbreviations...............................................................................................................4 Terms..........................................................................................................................6 Acknowledgements......................................................................................................8 ExplanatoryNotes........................................................................................................8 Foreword.....................................................................................................................9 Recommendations.....................................................................................................10 ExecutiveSummary....................................................................................................11 Introduction................................................................................................................13 ProjectPurpose.........................................................................................................13 Objectives..................................................................................................................13
    [Show full text]