Opengis® Filter Encoding Implementation Specification
Total Page:16
File Type:pdf, Size:1020Kb
Open Geospatial Consortium Inc. Date: 3 May 2005 Reposted: 26 October 2012 Reference number of this OpenGIS® project document: OGC 04-095c1 Version: 1.1.0 Corrigendum Category: OpenGIS® Implementation Specification Status: Adopted Specification Editor: Panagiotis A. Vretanos OpenGIS® Filter Encoding Implementation Specification Document type: OpenGIS® Publicly Available Implementation Specification Document stage: Final Document language: English Copyright © Open Geospatial Consortium, Inc (2005) To obtain additional rights of use, visit http://www.opengeospatial.org/legal/ THIS PAGE INTENTIONALLY LEFT BLANK Contents i. Preface ............................................................................................................................ iii ii. Submitting organizations ............................................................................................ iii iii. Submission contact points .......................................................................................... iv iv. Revision history ........................................................................................................... iv v. Changes to the OpenGIS Abstract Specification .................................................... v Foreword .......................................................................................................................... vi Introduction .................................................................................................................... vii 1 Scope ............................................................................................................................... 1 2 Conformance .................................................................................................................. 1 3 Normative references ..................................................................................................... 2 4 Terms and definitions .................................................................................................... 3 5 Conventions .................................................................................................................... 4 5.1 Normative verbs .......................................................................................................... 4 5.2 Abbreviated terms ...................................................................................................... 4 6 Properties ........................................................................................................................ 4 6.1 Introduction ................................................................................................................. 4 6.2 Property names ........................................................................................................... 4 6.3 Property references ..................................................................................................... 5 7 Filter ................................................................................................................................ 9 7.1 Introduction ................................................................................................................. 9 7.2 Encoding ...................................................................................................................... 9 8 Spatial operators .......................................................................................................... 10 1.1Introduction ................................................................................................................ 10 1.2Encoding ..................................................................................................................... 10 8.3 SRS handling of literal geometries in Filter expressions ....................................... 11 9 Comparison operators ................................................................................................. 12 1.3Introduction ................................................................................................................ 12 9.2 Encoding .................................................................................................................... 12 10 Logical operators ....................................................................................................... 14 10.1 Introduction ............................................................................................................. 14 10.2 Encoding ................................................................................................................ 14 OpenGIS® Implementation Specification OGC 04-095c1 11 Object identifiers ........................................................................................................ 15 1.4Introduction ................................................................................................................ 15 11.2 Encoding .................................................................................................................. 15 12 Expressions ................................................................................................................. 16 1.5Introduction ................................................................................................................ 16 12.2 Encoding .................................................................................................................. 16 Copyright © Open Geospatial Consortium, Inc (2005) 3 OpenGIS® Implementation Specification OGC 04-095c1 13 Arithmetic operators ................................................................................................. 16 1.6Introduction ................................................................................................................ 16 13.2 Encoding .................................................................................................................. 16 14 Literals ........................................................................................................................ 17 1.7Introduction ................................................................................................................ 17 14.2 Encoding .................................................................................................................. 17 15 Functions ..................................................................................................................... 18 1.8Introduction ................................................................................................................ 18 15.2 Encoding .................................................................................................................. 18 16 Filter capabilities ........................................................................................................ 18 ANNEX A - Examples (Informative) ........................................................................... 23 A.1 Introduction ............................................................................................................. 23 A.2 Examples ................................................................................................................... 23 ANNEX B – Filter schema definitions (Normative) .................................................... 28 B.1 Introduction .............................................................................................................. 28 ANNEX C - Conformance tests ................................................................................... 29 Bibliography ................................................................................................................... 30 Copyright © Open Geospatial Consortium, Inc (2005) iv i. Preface This document was originally part of version 0.0.10 of the Web Feature Server (WFS) Implementation Specification [14]. It was decided that the contents of this specification would be put into their own document since the Filter encoding described herein can be used by a broad range of services that require the ability to express predicates in XML. Such services include Web Feature Service, Web Coverage Service, Gazetteer, Web Registries, etc… The predicate language defined in this document is based on the productions for the Common Query Language (CQL) found in the OpenGIS Catalog Interface Implementation Specification V1.0 [2]. The spatial operators included in this specification are derived from [2] and from the OpenGIS Simple Features Specification For SQL, Revision 1.1[2]. ii. Submitting organizations The following companies submitted this specification to the OGC as a Request for Comment: CubeWerx Inc. Edric Keighan 200 Rue Montcalm, Suite R-13 Hull, Quebec Canada J8Y 3B5 [email protected] Intergraph Corp. John T. Vincent 1881 Campus Commons Drive Reston, VA 20191 U.S.A [email protected] IONIC Software Serge Margoulies 128 Avenue de l'Observatoire B-4000 LIEGE Belgium [email protected] Laser-Scan Ltd. Peter Woodsford Copyright © Open Geospatial Consortium, Inc (2005) v 101 Cambridgbe Science Park Milton Road Cambridge CB4 0FY U.K. [email protected] iii. Submission contact points All questions regarding this submission should be directed to the Editor: Panagiotis (Peter) A. Vretanos CubeWerx, Inc. 200 Rue Montcalm, Suite R-13 Hull, Quebec J8Y 3B5 CANADA +1 416 701 1985 [email protected] Additional contributors Rob Atkinson (Social Change Online) [email protected] Craig Bruce (CubeWerx) [email protected] Paul