1、April 2011 Translation by DIN-Sprachendienst.English price group 42No part of this translation may be reproduced without prior permission ofDIN Deutsches Institut fr Normung e. V., Berlin. Beuth Verlag GmbH, 10772 Berlin, Germany,has the exclusive right of sale for German Standards (DIN-Normen).ICS
2、35.240.70!$noj“1757671www.din.deDDIN EN ISO 19142Geographic information Web Feature Service (ISO 19142:2010)English translation of DIN EN ISO 19142:2011-04Geoinformation Web Feature Service (ISO 19142:2010)Englische bersetzung von DIN EN ISO 19142:2011-04Information gographique Services daccs aux en
3、tits gographiques par le web (ISO 19142:2010)Traduction anglaise de DIN EN ISO 19142:2011-04www.beuth.deDocument comprises pagesIn case of doubt, the German-language original shall be considered authoritative.25103.11 DIN EN ISO 19142:2011-04 A comma is used as the decimal marker. National foreword
4、This document has been prepared by Technical Committee ISO/TC 211 “Geographic information/Geomatics” in collaboration with the Open Geospatial Consortium, Invc. (OGC) and Technical Committee CEN/TC 287 “Geographic information” (Secretariat: BSI, United Kingdom). The responsible German body involved
5、in its preparation was the Normenausschuss Bauwesen (Building and Civil Engineering Standards Committee), Working Committee NA 005-03-03 AA Kartographie und Geoinformation. 2 EUROPEAN STANDARD NORME EUROPENNE EUROPISCHE NORM EN ISO 19142 December 2010 ICS 35.240.70 English Version Geographic informa
6、tion Web Feature Service (ISO 19142:2010) Information gographique Services daccs aux entits gographiques par le web (ISO 19142:2010) Geoinformation Web Feature Service (ISO 19142:2010) This European Standard was approved by CEN on 14 December 2010. CEN members are bound to comply with the CEN/CENELE
7、C 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 references concerning such national standards may be obtained on application to the CEN-CENELEC Management Centre or
8、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 a CEN member into its own language and notified to the CEN-CENELEC Management Centre has the same status as the offic
9、ial versions. CEN members are the national standards bodies of Austria, Belgium, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia,Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Norway, Poland, Portugal, Romania, Slova
10、kia, Slovenia, Spain, Sweden, Switzerland and United Kingdom. EUROPEAN COMMITTEE FOR STANDARDIZATION COMIT EUROPEN DE NORMALISATION EUROPISCHES KOMITEE FR NORMUNG Management Centre: Avenue Marnix 17, B-1000 Brussels 2010 CEN All rights of exploitation in any form and by any means reserved worldwide
11、for CEN national Members. Ref. No. EN ISO 19142:2010: EContents Page Foreword .10 Introduction.11 1 Scope12 2 Conformance .13 3 Normative references14 4 Terms and definitions .15 5 Conventions.19 5.1 Abbreviated terms.19 5.2 Use of examples 20 5.3 XML schemas.20 5.4 UML Notation .20 5.4.1 Class diag
12、rams 20 5.4.2 State machine notation.21 6 Basic service elements.22 6.1 Introduction22 6.2 Version numbering and negotiation22 6.2.1 Version number form and value 22 6.2.2 Appearance in service metadata and in requests22 6.2.3 Version number negotiation.22 6.2.4 Request encoding .22 6.2.5 KVP parame
13、ter encoding rules 23 6.3 Namespaces.24 6.4 Service bindings24 7 Common elements 24 7.1 Encoding of features.24 7.2 Resource identifiers24 7.2.1 Assigning resource identifiers.24 7.2.2 Encoding resource identifiers25 7.2.3 Version identification25 7.3 Property references.25 7.3.1 XPath subset25 7.3.
14、2 Accessor function .25 7.4 Predicate expression encoding .26 7.5 Exception reporting.26 7.6 Common request parameters 28 7.6.1 Introduction28 7.6.2 Base request type28 7.6.3 Standard presentation parameters30 7.6.4 Standard resolve parameters.33 7.6.5 Standard input parameters.36 7.6.6 Additional c
15、ommon keywords for KVP-encoded requests.37 7.7 Standard response parameters .38 7.7.1 Parameter semantics 38 7.7.2 XML encoding 38 7.7.3 KVP encoding 38 7.7.4 Parameter discussion .38 7.8 Use of the schemaLocation attribute 41 7.9 Query expressions 41 2EN ISO 19142:2010 (E) DIN EN ISO 19142:2011-04
16、7.9.1 Introduction. 41 7.9.2 Ad hoc query expression. 41 7.9.3 Stored query expression 51 8 GetCapabilities operation 53 8.1 Introduction. 53 8.2 Request 54 8.2.1 Request semantics . 54 8.2.2 XML encoding . 54 8.2.3 KVP encoding 54 8.3 Response. 54 8.3.1 Response semantics 54 8.3.2 XML encoding . 55
17、 8.3.3 Capabilities document . 56 8.3.4 FeatureTypeList section 59 8.3.5 Parameters domains and constraints 59 8.4 Extension points. 63 8.5 Exceptions. 65 9 DescribeFeatureType operation 65 9.1 Introduction. 65 9.2 Request 65 9.2.1 Request semantics . 65 9.2.2 XML Encoding. 65 9.2.3 KVP Encoding . 6
18、6 9.2.4 Parameter discussion 66 9.3 Response. 67 9.3.1 Introduction. 67 9.3.2 Supporting multiple namespaces . 67 9.4 Exceptions. 68 10 GetPropertyValue operation 68 10.1 Introduction. 68 10.2 Request 68 10.2.1 Request semantics . 68 10.2.2 XML Encoding. 69 10.2.3 KVP Encoding . 69 10.2.4 Parameter
19、discussion 69 10.3 Response. 71 10.3.1 Response semantics 71 10.3.2 XML encoding . 71 10.3.3 State parameter. 72 10.3.4 Standard response parameters. 72 10.4 Exceptions. 72 11 GetFeature operation . 73 11.1 Introduction. 73 11.2 Request 73 11.2.1 Request semantics . 73 11.2.2 XML encoding . 74 11.2.
20、3 KVP encoding 74 11.2.4 Parameter discussions 75 11.3 Response. 75 11.3.1 Response semantics 75 11.3.2 XML encoding . 76 11.3.3 Parameter discussions 77 11.3.4 Additional objects. 80 11.3.5 GetFeatureById response 80 11.4 Exceptions. 81 12 LockFeature operation . 81 12.1 Introduction. 81 3EN ISO 19
21、142:2010 (E) DIN EN ISO 19142:2011-04 12.2 Request.81 12.2.1 Request semantics81 12.2.2 XML encoding 82 12.2.3 KVP encoding 82 12.2.4 Parameter discussions .83 12.2.5 State machine for WFS locking83 12.3 Response .85 12.3.1 Response semantics.85 12.3.2 XML encoding 85 12.4 Exceptions .86 13 GetFeatu
22、reWithLock operation86 13.1 Introduction86 13.2 Request.86 13.2.1 Request semantics86 13.2.2 XML encoding 86 13.2.3 KVP encoding 87 13.2.4 Parameter discussion .87 13.3 Response .88 13.3.1 Introduction88 13.3.2 lockId parameter88 13.4 Exceptions .88 14 Stored query management .88 14.1 Introduction88
23、 14.2 Defining stored queries 89 14.2.1 XML encoding 89 14.2.2 Parameter discussion .89 14.3 ListStoredQueries operation92 14.3.1 Request semantics92 14.3.2 XML encoding 93 14.3.3 KVP encoding 93 14.3.4 Response .93 14.3.5 Exceptions .94 14.4 DescribeStoredQueries operations.94 14.4.1 Request semant
24、ics94 14.4.2 XML encoding 94 14.4.3 KVP encoding 95 14.4.4 Response .95 14.5 CreateStoredQuery operation 96 14.5.1 Request semantics96 14.5.2 XML encoding 96 14.5.3 KVP encoding 96 14.5.4 Parameter discussions .96 14.5.5 Response .97 14.6 DropStoredQuery operations.97 14.6.1 Request semantics97 14.6
25、.2 XML encoding 98 14.6.3 KVP encoding 98 14.6.4 Response .98 14.7 Exceptions .98 15 Transaction operation.99 15.1 Introduction99 15.2 Request.99 15.2.1 Request semantics99 15.2.2 XML encoding 100 15.2.3 Parameter discussions .101 15.2.4 Insert action .102 15.2.5 Update action.103 15.2.6 Replace act
26、ion .105 4EN ISO 19142:2010 (E) DIN EN ISO 19142:2011-04 15.2.7 Delete action 105 15.2.8 Native action 106 15.3 Response. 107 15.3.1 Response semantics 107 15.3.2 TransactionResponse element 107 15.3.3 TransactionSummary element .10815.3.4 InsertResults element 108 15.3.5 UpdateResults element 109 1
27、5.3.6 ReplaceResults element 109 15.4 Exceptions. 109 Annex A (normative) Conformance testing. 110 A.1 Conformance classes. 110 A.1.1 Simple WFS . 110 A.1.2 Basic WFS . 110 A.1.3 Transactional WFS . 110 A.1.4 Locking WFS . 111 A.1.5 HTTP GET 111 A.1.6 HTTP POST 111 A.1.7 SOAP 111 A.1.8 Inheritance.
28、112 A.1.9 Remote resolve . 112 A.1.10 Response paging 112 A.1.11 Standard joins. 112 A.1.12 Spatial joins. 112 A.1.13 Temporal joins 113 A.1.14 Feature versions . 113 A.1.15 Manage stored queries. 113 A.2 Basic tests. 113 A.2.1 Version negotiation 113 A.2.2 Lists version number 2.0.0 as a supported
29、request version number . 114 A.2.3 Invalid version number 114 A.2.4 Version negotiation for the GetCapabilities request. 114 A.2.5 Response to XML- and KVP-encoded. requests . 114 A.2.6 Parameter ordering and case 115 A.2.7 Unrecognized parameters 115 A.2.8 Server operates on GML features . 115 A.2.
30、9 Feature identifiers. 116 A.2.10 Invariant identifier. 116 A.2.11 Versioning . 116A.2.12 XPath subset . 117 A.2.13 Predicate encoding. 117 A.2.14 Exception reporting 117 A.2.15 Common request parameters 118A.2.16 Standard presentation parameters . 119 A.2.17 Standard resolve parameters 120 A.2.18 S
31、tandard input parameters 123 A.2.19 Standard response parameters. 124 A.2.20 Response paging 125 A.2.21 schemaLocation parameter. 126 A.2.22 Query expressions . 126 A.2.23 Declaring conformance 131 Annex B (informative) Examples 132 B.1 Exception report example 132 B.2 DescribeFeatureType examples 1
32、32 B.2.1 Example 1 132 B.2.2 Example 2 135 5EN ISO 19142:2010 (E) DIN EN ISO 19142:2011-04 B.3 GetFeature examples 139 B.3.1 Introduction139 B.3.2 Example 1.139 B.3.3 Example 2.139 B.3.4 Example 3.140 B.3.5 Example 4.140 B.3.6 Example 5.142 B.3.7 Example 6.142 B.3.8 Example 7.142 B.3.9 Example 8.143
33、 B.3.10 Example 9.145 B.3.11 Example 10.147 B.3.12 Example 11.148 B.3.13 Example 12.149 B.3.14 Example 13.150 B.3.15 Example 14.153 B.3.16 Example 15.154 B.3.17 Example 16.154 B.3.18 Example 17.155 B.3.19 Example 18.156 B.3.20 Example 19.156 B.4 GetPropertyValue examples.157 B.4.1 Introduction157B.4
34、.2 Example 1.158 B.4.3 Example 2.160 B.4.4 Example 3.160 B.4.5 Example 4.162 B.4.6 Example 5.163 B.4.7 Example 6.1564B.4.8 Example 7.165 B.4.9 Example 8.165 B.4.10 Example 9.166 B.5 LockFeature examples167 B.5.1 Example 1.167 B.5.2 Example 2.168 B.5.3 Example 3.168 B.5.4 Example 4.169 B.6 Transactio
35、n examples.170 B.6.1 Insert example .170 B.6.2 Update examples.171 B.6.3 Delete examples 173 B.6.4 Mixed transaction example 174 B.6.5 Transaction response example177 B.7 GetCapabilities example.178 B.8 KVP examples193 B.8.1 Conventions.193 B.8.2 DescribeFeatureType examples 193 B.8.3 GetPropertyVal
36、ue examples.194 B.8.4 GetFeature examples 196 B.8.5 LockFeature examples201 Annex C (informative) Consolidated XML schema203 C.1 Introduction203 C.2 wfs.xsd203 Annex D (normative) Service bindings.214 D.1 Introduction214 6EN ISO 19142:2010 (E) DIN EN ISO 19142:2011-04 D.2 HTTP GET and POST binding 2
37、14 D.3 HTTP status codes . 214 D.4 SOAP binding 215 D.4.1 Introduction. 215 D.4.2 SOAP Envelope. 216 D.4.3 SOAP Header. 216 D.4.4 SOAP Body 216 D.4.5 Encoding XML Schema in a SOAP Body . 217 D.4.6 SOAP Fault 218D.4.7 SOAP HTTP Binding. 219 Annex E (normative) Web Service Description Language (WSDL).
38、 219 E.1 Introduction. 220 E.2 WFS Operations in WSDL 220 E.3 SOAP Binding . 220 E.4 Binding style . 221 E.5 Service . 222 E.6 Service description using WSDL 222 E.6.1 Introduction. 222 E.6.2 wfs-xml-interfaces.wsdl . 222 E.6.3 wfs-kvp-interfaces.wsdl . 224 E.6.4 wfs-responses.wsdl 226 E.6.5 wfs-htt
39、p-bindings.wsdl. 226 E.6.6 wfs-kvp-bindings.wsdl . 229 E.6.7 wfs-soap-bindings.wsdl . 230 E.6.8 Ancillary files. 232 E.6.9 Examples (informative) 237 Annex F (informative) Abstract model . 240 F.1 Overview 240 F.2 Abstract Resource Model 240 F.2.1 Introduction. 240 F.2.2 Basic Accessor Functions. 24
40、4 F.3 Mapping of the General Feature Model (GFM) to the WFS Abstract Model 242 F.4 Identifiers. 242 F.5 valueOf() function . 242 F.6 WFS Operations 242 F.6.1 Introduction. 242 F.6.2 featureTypeNameList() function 243 F.6.3 featureType() function 243 F.6.4 Query function 243 F.6.5 propertyValue() fun
41、ction 244 F.6.6 lock() function . 245 F.6.7 transaction() function. 245 F.6.8 Stored query operations 246 F.7 WFS Operations 247 F.8 Conceptual schema 247 Bibliography. 249 7EN ISO 19142:2010 (E) DIN EN ISO 19142:2011-04 Figures Figure 1 UML notation in class diagrams 20 Figure 2 Summary of UML stat
42、e diagram notations 21 Figure 3 BaseRequest .28 Figure 4 StandardPresentationParameters .30 Figure 5 StandardResolveParameters 33 Figure 6 StandardInputParameters .36 Figure 7 StandardResponseParameters .38 Figure 8 Ad hoc query expression .42 Figure 9 Query projection clause.46 Figure 10 Query sort
43、ing clause50 Figure 11 StoredQuery 52 Figure 12 GetCapabilities request .54 Figure 13 GetCapabilities response 54 Figure 14 DescribeFeatureType request.65 Figure 15 GetPropertyValue request.68 Figure 16 GetPropertyValue response 71 Figure 17 GetFeature request .74 Figure 18 GetFeature response.76 Fi
44、gure 19 LockFeature request81 Figure 20 State diagram for a WFS lock84 Figure 21 LockFeature response.85 Figure 22 GetFeatureWithLock request.86 Figure 23 ListStoredQueries request.92 Figure 24 ListStoredQueriesResponse93 Figure 25 DescribeStoredQueries request 94 Figure 26 DescribeStoredQueriesResp
45、onse.95 Figure 27 CreateStoredQuery request 96 Figure 28 CreateStoredQuery response97 Figure 29 DropStoredQuery request .97 8EN ISO 19142:2010 (E) DIN EN ISO 19142:2011-04 Figure 30 Transaction request 90 Figure 31 Transaction response . 107 Figure F.1 Web Feature Service interfaces overview. 248 Ta
46、bles Table 1 Conformance Classes 13 Table 2 Operation request encoding. 23 Table 3 WFS exception codes 27 Table 4 KVP encoding of the base request type. 29 Table 5 KVP encoding of standard presentation parameters . 30 Table 6 KVP encoding of standard resolve parameters . 34 Table 7 Additional common
47、 keywords for KVP-encoded. WFS requests. 37 Table 8 Keywords for Ad hoc query KVP encoding 43 Table 9 KVP encoding of projection clause 46 Table 10 Keywords for Stored query KVP encoding. 52 Table 11 Elements to describe feature types 58 Table 12 Parameter domains for WFS operations 59 Table 13 Serv
48、ice constraints. 61 Table 14 Operation Constraints 62 Table 15 DescribeFeatureType KVP encoding. 66 Table 16 Keywords for GetPropertyValue KVP encoding 69 Table 17 Keywords for GetFeature KVP encoding. 75 Table 18 Keywords for LockFeature KVP encoding . 82 Table 19 Additional keywords for GetFeatureWithLock KVP encoding 87 Table 20 Keywords for ListStoredQueries KVP encoding 93 Table 21 Keywords for DescribeStoredQueries KVP encoding 95 Tab