[OpenLayers-Users] Hassles parsing Arcgis WFS getcapabilities
in openlayers.
Phil Scadden
p.scadden at gns.cri.nz
Mon Feb 15 15:16:44 EST 2010
An example of the full XML response for the WFS capabilities from AGS is:
wfs:WFS_Capabilities version='1.1.0'
xsi:schemaLocation='http://www.opengis.net/gml
http://schemas.opengis.net/gml/3.1.1/base/gml.xsd
http://www.opengis.net/ogc
http://schemas.opengis.net/filter/1.1.0/filter.xsd
http://www.opengis.net/ows
http://schemas.opengis.net/ows/1.0.0/owsAll.xsd
http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd'
xmlns:wfs='http://www.opengis.net/wfs'
xmlns:ogc='http://www.opengis.net/ogc'
xmlns:gml='http://www.opengis.net/gml'
xmlns:ows='http://www.opengis.net/ows'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:xlink='http://www.w3.org/1999/xlink'
xmlns:MyDomain='http://myserver/arcgis/services/PBE/myservice/MapServer/WFSServer'><ows:ServiceIdentification><ows:Title>PBE_MyDomain</ows:Title><ows:Abstract></ows:Abstract><ows:Keywords><ows:Keyword></ows:Keyword></ows:Keywords><ows:ServiceType>WFS</ows:ServiceType><ows:ServiceTypeVersion>1.1.0</ows:ServiceTypeVersion><ows:Fees></ows:Fees><ows:AccessConstraints></ows:AccessConstraints></ows:ServiceIdentification><ows:ServiceProvider><ows:ProviderName></ows:ProviderName><ows:ServiceContact><ows:IndividualName></ows:IndividualName><ows:PositionName></ows:PositionName><ows:ContactInfo><ows:Phone><ows:Voice></ows:Voice><ows:Facsimile></ows:Facsimile></ows:Phone><ows:Address><ows:DeliveryPoint></ows:DeliveryPoint><ows:City></ows:City><ows:AdministrativeArea></ows:AdministrativeArea><ows:PostalCode></ows:PostalCode><ows:Country></ows:Country><ows:ElectronicMailAddress></ows:ElectronicMailAddress></ows:Address><ows:HoursOfService></ows:HoursOfService><ows:ContactInstructions></ows:ContactInstructions></ows:ContactInfo></ows:ServiceContact></ows:ServiceProvider><ows:OperationsMetadata><ows:Operation
name='GetCapabilities'><ows:DCP><ows:HTTP><ows:Get
xlink:href='http://myserver/arcgis/services/PBE/myservice/MapServer/WFSServer?'/><ows:Post
xlink:href='http://myserver/arcgis/services/PBE/myservice/MapServer/WFSServer'/></ows:HTTP></ows:DCP><ows:Parameter
name='AcceptVersions'><ows:Value>1.1.0</ows:Value></ows:Parameter><ows:Parameter
name='AcceptFormats'><ows:Value>text/xml</ows:Value></ows:Parameter></ows:Operation><ows:Operation
name='DescribeFeatureType'><ows:DCP><ows:HTTP><ows:Get
xlink:href='http://myserver/arcgis/services/PBE/myservice/MapServer/WFSServer?'/><ows:Post
xlink:href='http://myserver/arcgis/services/PBE/myservice/MapServer/WFSServer'/></ows:HTTP></ows:DCP><ows:Parameter
name='outputFormat'><ows:Value>text/xml;
subType=gml/3.1.1/profiles/gmlsf/1.0.0/0</ows:Value></ows:Parameter></ows:Operation><ows:Operation
name='GetFeature'><ows:DCP><ows:HTTP><ows:Get
xlink:href='http://myserver/arcgis/services/PBE/myservice/MapServer/WFSServer?'/><ows:Post
xlink:href='http://myserver/arcgis/services/PBE/myservice/MapServer/WFSServer'/></ows:HTTP></ows:DCP><ows:Parameter
name='resultType'><ows:Value>results</ows:Value><ows:Value>hits</ows:Value></ows:Parameter><ows:Parameter
name='outputFormat'><ows:Value>text/xml;
subType=gml/3.1.1/profiles/gmlsf/1.0.0/0</ows:Value></ows:Parameter></ows:Operation><ows:Operation
name='GetFeatureWithLock'><ows:DCP><ows:HTTP><ows:Get
xlink:href='http://myserver/arcgis/services/PBE/myservice/MapServer/WFSServer?'/><ows:Post
xlink:href='http://myserver/arcgis/services/PBE/myservice/MapServer/WFSServer'/></ows:HTTP></ows:DCP><ows:Parameter
name='resultType'><ows:Value>results</ows:Value></ows:Parameter><ows:Parameter
name='outputFormat'><ows:Value>text/xml;
subType=gml/3.1.1/profiles/gmlsf/1.0.0/0</ows:Value></ows:Parameter></ows:Operation><ows:Operation
name='Transaction'><ows:DCP><ows:HTTP><ows:Get
xlink:href='http://myserver/arcgis/services/PBE/myservice/MapServer/WFSServer?'/><ows:Post
xlink:href='http://myserver/arcgis/services/PBE/myservice/MapServer/WFSServer'/></ows:HTTP></ows:DCP><ows:Parameter
name='inputFormat'><ows:Value>text/xml;
subType=gml/3.1.1/profiles/gmlsf/1.0.0/0</ows:Value></ows:Parameter><ows:Parameter
name='releaseAction'><ows:Value>ALL</ows:Value></ows:Parameter><ows:Parameter
name='idgen'><ows:Value>GenerateNew</ows:Value></ows:Parameter></ows:Operation><ows:ExtendedCapabilities><ows:Constraint
name='serviceAxisOrderForSwappableSRS'><ows:Value>latitude,longitude</ows:Value></ows:Constraint></ows:ExtendedCapabilities></ows:OperationsMetadata><wfs:FeatureTypeList><wfs:FeatureType><wfs:Name>MyDomain:Layer_1</wfs:Name><wfs:Title>Layer_1</wfs:Title><wfs:DefaultSRS>urn:x-ogc:def:crs:EPSG:6.9:27200</wfs:DefaultSRS><wfs:OtherSRS>urn:x-ogc:def:crs:EPSG:6.9:4326</wfs:OtherSRS><wfs:OutputFormats><wfs:Format>text/xml;
subType=gml/3.1.1/profiles/gmlsf/1.0.0/0</wfs:Format></wfs:OutputFormats><ows:WGS84BoundingBox><ows:LowerCorner>-180
-54.1184466840914</ows:LowerCorner><ows:UpperCorner>180
-23.1331836761979</ows:UpperCorner></ows:WGS84BoundingBox></wfs:FeatureType><wfs:FeatureType><wfs:Name>MyDomain:Layer_2</wfs:Name><wfs:Title>Layer_2</wfs:Title><wfs:DefaultSRS>urn:x-ogc:def:crs:EPSG:6.9:4326</wfs:DefaultSRS><wfs:OtherSRS>urn:x-ogc:def:crs:EPSG:6.9:4326</wfs:OtherSRS><wfs:OutputFormats><wfs:Format>text/xml;
subType=gml/3.1.1/profiles/gmlsf/1.0.0/0</wfs:Format></wfs:OutputFormats><ows:WGS84BoundingBox><ows:LowerCorner>172.390547995875
-41.8486191231589</ows:LowerCorner><ows:UpperCorner>174.468258516558
-38.7705021368543</ows:UpperCorner></ows:WGS84BoundingBox></wfs:FeatureType></wfs:FeatureTypeList><ogc:Filter_Capabilities><ogc:Spatial_Capabilities><ogc:GeometryOperands><ogc:GeometryOperand>gml:Envelope</ogc:GeometryOperand><ogc:GeometryOperand>gml:Point</ogc:GeometryOperand><ogc:GeometryOperand>gml:Polygon</ogc:GeometryOperand><ogc:GeometryOperand>gml:LineString</ogc:GeometryOperand></ogc:GeometryOperands><ogc:SpatialOperators><ogc:SpatialOperator
name='BBOX'/><ogc:SpatialOperator name='Equals'/><ogc:SpatialOperator
name='Disjoint'/><ogc:SpatialOperator
name='Intersects'/><ogc:SpatialOperator
name='Crosses'/><ogc:SpatialOperator
name='Touches'/><ogc:SpatialOperator name='Within'/><ogc:SpatialOperator
name='Contains'/><ogc:SpatialOperator
name='Overlaps'/></ogc:SpatialOperators></ogc:Spatial_Capabilities><ogc:Scalar_Capabilities><ogc:LogicalOperators/><ogc:ComparisonOperators><ogc:ComparisonOperator>EqualTo</ogc:ComparisonOperator><ogc:ComparisonOperator>NotEqualTo</ogc:ComparisonOperator><ogc:ComparisonOperator>LessThan</ogc:ComparisonOperator><ogc:ComparisonOperator>GreaterThan</ogc:ComparisonOperator><ogc:ComparisonOperator>LessThanEqualTo</ogc:ComparisonOperator><ogc:ComparisonOperator>GreaterThanEqualTo</ogc:ComparisonOperator><ogc:ComparisonOperator>Like</ogc:ComparisonOperator><ogc:ComparisonOperator>Between</ogc:ComparisonOperator><ogc:ComparisonOperator>NullCheck</ogc:ComparisonOperator></ogc:ComparisonOperators></ogc:Scalar_Capabilities><ogc:Id_Capabilities><ogc:EID/><ogc:FID/></ogc:Id_Capabilities></ogc:Filter_Capabilities></wfs:WFS_Capabilities>
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
More information about the Users
mailing list