DCGISAGSServices
Click here for a complete list of operations.
findPolygonByPoint
Accepts six input parameters: ArcGIS Server map service URL, comma delimited layer IDs, x coordinate, y coordinate, the spatial reference system WKID of the input point, returngeometry (true/false), geometrywkid, the identify tolerance and the return format f (default is xml). For example:
serviceUrl=http://maps2.dcgis.dc.gov/DCGIS/services/DCGIS_DATA/Education/MapServer, layerIDs=9,10, x=398642, y=136399, xywkid=26985, returngeometry=true, geometrywkid=4326, tolerance=3, f=json
serviceUrl=http://maps2.dcgis.dc.gov/DCGIS/services/DCGIS_DATA/Education/MapServer, layerIDs=9,10, x=-77.01572506, y=38.89544481, xywkid=4326, returngeometry=false, geometrywkid=, tolerance=3, f=xml
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /agsservices/DCGISAGSServices.asmx HTTP/1.1 Host: geospatial.dcgis.dc.gov Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://pntinpoly.dcgis.dc.gov/findPolygonByPoint" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <findPolygonByPoint xmlns="http://pntinpoly.dcgis.dc.gov/"> <serviceUrl>string</serviceUrl> <layerIDs>string</layerIDs> <x>string</x> <y>string</y> <xywkid>string</xywkid> <returnGeo>string</returnGeo> <geowkid>string</geowkid> <tolerance>string</tolerance> <f>string</f> </findPolygonByPoint> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <findPolygonByPointResponse xmlns="http://pntinpoly.dcgis.dc.gov/"> <findPolygonByPointResult> <ErrorMessage>string</ErrorMessage> <Layers> <ReturnLayer> <LayerId>string</LayerId> <LayerName>string</LayerName> <GeometryType>string</GeometryType> <Features xsi:nil="true" /> </ReturnLayer> <ReturnLayer> <LayerId>string</LayerId> <LayerName>string</LayerName> <GeometryType>string</GeometryType> <Features xsi:nil="true" /> </ReturnLayer> </Layers> </findPolygonByPointResult> </findPolygonByPointResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /agsservices/DCGISAGSServices.asmx HTTP/1.1 Host: geospatial.dcgis.dc.gov Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <findPolygonByPoint xmlns="http://pntinpoly.dcgis.dc.gov/"> <serviceUrl>string</serviceUrl> <layerIDs>string</layerIDs> <x>string</x> <y>string</y> <xywkid>string</xywkid> <returnGeo>string</returnGeo> <geowkid>string</geowkid> <tolerance>string</tolerance> <f>string</f> </findPolygonByPoint> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <findPolygonByPointResponse xmlns="http://pntinpoly.dcgis.dc.gov/"> <findPolygonByPointResult> <ErrorMessage>string</ErrorMessage> <Layers> <ReturnLayer> <LayerId>string</LayerId> <LayerName>string</LayerName> <GeometryType>string</GeometryType> <Features xsi:nil="true" /> </ReturnLayer> <ReturnLayer> <LayerId>string</LayerId> <LayerName>string</LayerName> <GeometryType>string</GeometryType> <Features xsi:nil="true" /> </ReturnLayer> </Layers> </findPolygonByPointResult> </findPolygonByPointResponse> </soap12:Body> </soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /agsservices/DCGISAGSServices.asmx/findPolygonByPoint?serviceUrl=string&layerIDs=string&x=string&y=string&xywkid=string&returnGeo=string&geowkid=string&tolerance=string&f=string HTTP/1.1 Host: geospatial.dcgis.dc.gov
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <ServiceReturn xmlns="http://pntinpoly.dcgis.dc.gov/"> <ErrorMessage>string</ErrorMessage> <Layers> <ReturnLayer> <LayerId>string</LayerId> <LayerName>string</LayerName> <GeometryType>string</GeometryType> <Features> <ReturnFeature d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <ReturnFeature d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </Features> </ReturnLayer> <ReturnLayer> <LayerId>string</LayerId> <LayerName>string</LayerName> <GeometryType>string</GeometryType> <Features> <ReturnFeature d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <ReturnFeature d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </Features> </ReturnLayer> </Layers> </ServiceReturn>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /agsservices/DCGISAGSServices.asmx/findPolygonByPoint HTTP/1.1 Host: geospatial.dcgis.dc.gov Content-Type: application/x-www-form-urlencoded Content-Length: length serviceUrl=string&layerIDs=string&x=string&y=string&xywkid=string&returnGeo=string&geowkid=string&tolerance=string&f=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <ServiceReturn xmlns="http://pntinpoly.dcgis.dc.gov/"> <ErrorMessage>string</ErrorMessage> <Layers> <ReturnLayer> <LayerId>string</LayerId> <LayerName>string</LayerName> <GeometryType>string</GeometryType> <Features> <ReturnFeature d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <ReturnFeature d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </Features> </ReturnLayer> <ReturnLayer> <LayerId>string</LayerId> <LayerName>string</LayerName> <GeometryType>string</GeometryType> <Features> <ReturnFeature d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> <ReturnFeature d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" /> </Features> </ReturnLayer> </Layers> </ServiceReturn>