1、raising standards worldwideNO COPYING WITHOUT BSI PERMISSION EXCEPT AS PERMITTED BY COPYRIGHT LAWBSI Standards PublicationBS EN ISO 19143:2012Geographic information Filter encodingCopyright European Committee for Standardization Provided by IHS under license with CENNot for ResaleNo reproduction or
2、networking permitted without license from IHS-,-,-BS EN ISO 19143:2012 BRITISH STANDARDNational forewordThis British Standard is the UK implementation of ISO 19143:2012.It is identical to ISO 19143:2010. It supersedes BS ISO 19143:2010, which is withdrawn. The UK participation in its preparation was
3、 entrusted to TechnicalCommittee IST/36, Geographic information.A list of organizations represented on this committee can beobtained on request to its secretary.This publication does not purport to include all the necessaryprovisions of a contract. Users are responsible for its correctapplication. T
4、he British Standards Institution 2012. Published by BSI StandardsLimited 2012ISBN 978 0 580 75772 3ICS 35.240.70Compliance with a British Standard cannot confer immunity from legal obligations.This British Standard was published under the authority of theStandards Policy and Strategy Committee on 31
5、 October 2010.Amendments/corrigenda issued since publicationDate Text affectedEN 3 J 2012 0 une This corrigendum renumbers BS ISO 19143:2010as BS EN ISO 19143:2012Copyright European Committee for Standardization Provided by IHS under license with CENNot for ResaleNo reproduction or networking permit
6、ted without license from IHS-,-,-EUROPEAN STANDARD NORME EUROPENNE EUROPISCHE NORM EN ISO 19143 April 2012 ICS 35.240.70 English Version Geographic information - Filter encoding (ISO 19143:2010) Information gographique - Codage de filtres (ISO 19143:2010) Geoinformation - Filter Encoding (ISO 19143:
7、2010) This European Standard was approved by CEN on 9 March 2012. CEN members are bound to comply with the CEN/CENELEC Internal Regulations which stipulate the conditions for giving this European Standard the status of a national standard without any alteration. Up-to-date lists and bibliographical
8、references concerning such national standards may be obtained on application to the CEN-CENELEC Management Centre or to any CEN member. This European Standard exists in three official versions (English, French, German). A version in any other language made by translation under the responsibility of
9、a CEN member into its own language and notified to the CEN-CENELEC Management Centre has the same status as the official versions. CEN members are the national standards bodies of Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary
10、, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey and United Kingdom. EUROPEAN COMMITTEE FOR STANDARDIZATION COMIT EUROPEN DE NORMALISATION EUROPISCHES KOMITEE FR NORMUNG Management
11、Centre: Avenue Marnix 17, B-1000 Brussels 2012 CEN All rights of exploitation in any form and by any means reserved worldwide for CEN national Members. Ref. No. EN ISO 19143:2012: ECopyright European Committee for Standardization Provided by IHS under license with CENNot for ResaleNo reproduction or
12、 networking permitted without license from IHS-,-,-Foreword The text of ISO 19143:2010 has been prepared by Technical Committee ISO/TC 211 “Geographic information/Geomatics” of the International Organization for Standardization (ISO) and has been taken over as EN ISO 19143:2012 by Technical Committe
13、e CEN/TC 287 “Geographic Information” the secretariat of which is held by BSI. This European Standard shall be given the status of a national standard, either by publication of an identical text or by endorsement, at the latest by October 2012, and conflicting national standards shall be withdrawn a
14、t the latest by October 2012. Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. CEN and/or CENELEC shall not be held responsible for identifying any or all such patent rights. According to the CEN/CENELEC Internal Regulations, the n
15、ational standards organizations of the following countries are bound to implement this European Standard: Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, Netherlan
16、ds, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey and the United Kingdom. Endorsement notice The text of ISO 19143:2010 has been approved by CEN as a EN ISO 19143:2012 without any modification. BS EN ISO 19143:2012 EN ISO 19143:2012 (E)2Copyright European
17、Committee for Standardization Provided by IHS under license with CENNot for ResaleNo reproduction or networking permitted without license from IHS-,-,- ISO 2010 All rights reserved iiiContents Page Foreword . iv Introduction. .v 1 Scope. 1 2 Conformance . .2 3 Normative references. 3 4 Terms and def
18、initions . .3 5 Conventions. .6 5.1 Abbreviated terms . .6 5.2 UML notation. 7 5.3 Use of examples . 8 5.4 Namespaces. .8 5.5 KVP-encoded parameter lists 8 5.6 XML Schema fragments. 9 6 Query expressions . 9 6.1 General . .9 6.2 Abstract query expressions . .9 6.3 Ad hoc query expression10 7 Filter.
19、 13 7.1 General considerations. .13 7.2 Encoding . 14 7.3 Expressions . .14 7.4 Value references. 15 7.5 Literals. 17 7.6 Functions. 18 7.7 Comparison operators. 19 7.8 Spatial operators . .22 7.9 Temporal operators. .26 7.10 Logical operators . 28 7.11 Object identifiers . .30 7.12 Extensions . .31
20、 7.13 Filter capabilities . .33 7.14 Encoding . 35 8 Sorting . 42 8.1 General considerations. .42 8.2 Encoding . 42 8.3 Exceptions . .43 Annex A (normative) Conformance testing. 44 Annex B (informative) Filter schema definitions . .48 Annex C (informative) Examples . .60 Annex D (informative) EBNF f
21、or XPath subset . 80 Annex E (informative) Abstract model. 81 BS EN ISO 19143:2012 EN ISO 19143:2012 (E) ISO 2012Copyright European Committee for Standardization Provided by IHS under license with CENNot for ResaleNo reproduction or networking permitted without license from IHS-,-,-iv Foreword ISO (
22、the International Organization for Standardization) is a worldwide federation of national standards bodies (ISO member bodies). The work of preparing International Standards is normally carried out through ISO technical committees. Each member body interested in a subject for which a technical commi
23、ttee has been established 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. ISO collaborates closely with the International Electrotechnical Commission (IEC) on all matters of electrotec
24、hnical standardization. International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 2. The main task of technical committees is to prepare International Standards. Draft International Standards adopted by the technical committees are circulated to the membe
25、r bodies for voting. Publication as an International Standard requires approval by at least 75 % of the member bodies casting a vote. Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO shall not be held responsible for identifyin
26、g any or all such patent rights. ISO 19143 was prepared by Technical Committee ISO/TC 211, Geographic information/Geomatics, in collaboration with the Open Geospatial Consortium Inc. (OGC). BS EN ISO 19143:2012 EN ISO 19143:2012 (E) ISO 2012Copyright European Committee for Standardization Provided b
27、y IHS under license with CENNot for ResaleNo reproduction or networking permitted without license from IHS-,-,-vIntroduction Filter encoding was originated within the OGC. A fundamental operation performed on a set of data or resources is that of querying in order to obtain a subset of the data whic
28、h contains certain desired information that satisfies some query criteria and which is also, perhaps, sorted in some specified manner. The term “projection clause” is used to describe an encoding for specifying which subset of resource properties are presented in the response to a query. The term “f
29、ilter or selection clause” is used to describe an encoding of predicates which are typically used in query operations to specify how data instances in a source dataset should be filtered to produce a result set. Each data instance in the source set is evaluated using the filter expression. The overa
30、ll filter expression always evaluates to true or false. If the expression evaluates to true, the data instance satisfies the expression and is marked as being in the result set. If the overall filter expression evaluates to false, the data instance is not in the result set. Thus, the net effect of e
31、valuating a filter expression is a set of data or resource identifiers which satisfy the predicates in the expression. The term “sorting clause” is used to describe an encoding for specifying how the data in a response is ordered prior to being presented. Such encodings are considered system neutral
32、 because using the numerous XML tools available today, XML encoded projection, selection and sorting clauses can be easily validated, parsed and then transformed into whatever target query language is required to retrieve or modify resources stored in some persistent object store. For example an XML
33、 encoded query composed of a projection, selection and sorting clauses can be transformed into a SQL “SELECT FROM WHERE ORDER BY ” statement to fetch data stored in a SQL-based relational database. Similarly, the same XML encoded query expression can just as easily be transformed into an XQuery expr
34、ession in order to retrieve data from XML document. The XML and KVP encodings of projection, selection and sorting clauses described in this International Standard are common components which can be used together or as individually by a number of web services. Any service that requires the ability t
35、o query objects from a web-accessible repository can make use of the XML and KVP encodings of a query expression described in this International Standard. For example the GetFeature operation, defined in ISO 19142, uses the elements derived from definitions in this International Standard to encode q
36、uery expressions. BS EN ISO 19143:2012 EN ISO 19143:2012 (E) ISO 2012Copyright European Committee for Standardization Provided by IHS under license with CENNot for ResaleNo reproduction or networking permitted without license from IHS-,-,-INTERNATIONAL STANDARD 1Geographic information Filter encodin
37、g 1 Scope This International Standard describes an XML and KVP encoding of a system neutral syntax for expressing projections, selection and sorting clauses collectively called a query expression. These components are modular and intended to be used together or individually by other standards which
38、reference this International Standard. EXAMPLE 1 ISO 19142 makes use of some or all of these components. This International Standard defines an abstract component, named AbstractQueryExpression, from which other specifications can subclass concrete query elements to implement query operations. This
39、International Standard also defines an additional abstract query component, named AbstractAdhocQueryExpresison, which is derived from AbstractQueryExpression and from which other specifications can subclass concrete query elements which follow the following query pattern: An abstract query element f
40、rom which service specifications can subclass a concrete query element that implements a query operation that allows a client to specify a list of resource types, an optional projection clause, an optional selection clause, and an optional sorting clause to query a subset of resources that satisfy t
41、he selection clause. This pattern is referred to as an ad hoc query pattern since the server is not aware of the query until it is submitted for processing. This is in contrast to a stored query expression, which is stored and can be invoked by name or identifier. This International Standard also de
42、scribes an XML and KVP encoding of a system-neutral representation of a select clause. The XML representation is easily validated, parsed and transformed into a server-specific language required to retrieve or modify object instances stored in some persistent object store. EXAMPLE 2 An XML encoded f
43、ilter can be transformed into a WHERE clause for a SQL SELECT statement to fetch data stored in a SQL-based relational database. Similarly, and XML encoded filter expression can be transformed into an XPath or XPointer expression for fetching data from XML documents. This International Standard defi
44、nes the XML encoding for the following predicates. a) A standard set of logical predicates: and, or and not. b) A standard set of comparison predicates: equal to, not equal to, less than, less than or equal to, greater than, greater than or equal to, like, is null and between. c) A standard set of s
45、patial predicates: equal, disjoint, touches, within, overlaps, crosses, intersects, contains, within a specified distance, beyond a specified distance and BBOX. d) A standard set of temporal predicates: after, before, begins, begun by, contains, during, ends, equals, meets, met by, overlaps and over
46、lapped by. e) A predicate to test whether the identifier of an object matches the specified value. ISO 2012BS EN ISO 19143:2012 EN ISO 19143:2012 (E)Copyright European Committee for Standardization Provided by IHS under license with CENNot for ResaleNo reproduction or networking permitted without li
47、cense from IHS-,-,-2 This International Standard defines the XML encoding of metadata that allows a service to declare which conformance classes, predicates, operators, operands and functions it supports. This metadata is referred to as Filter Capabilities. 2 Conformance Few usage scenarios require
48、the full implementation of this International Standard to work. Therefore, service providers may want to specify requirements for only the subset needed to fulfil their service. Or system developers may want to document which subset of this International Standard it is that that they have implemente
49、d and conform to. These named conformance classes help in specifying such subsets. This International Standard defines conformance classes based on the operations and behaviour that a filter encoding service claims to implement. Table 1 indicates which behaviour shall be implemented for each of the conformance classes. The de
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1