AnsweredAssumed Answered

Python post request to Map  Service with spatial filter

Question asked by DEVAPPGIS on Oct 5, 2017
Latest reply on Oct 6, 2017 by DEVAPPGIS

Hi,

i have used this script to call a Map Service an retrivethe geometry:

URL = "http://server/arcgis/rest/services/services/MapServer/0/query"
where = "1=1"
fields = "*"
query = "?where={}&outFields={}&returnGeometry=true&f=json".format(where, fields)
fsURL = URL + query
fs = arcpy.FeatureSet()
fs.load(fsURL)

Now i need to request this service with POST method by REST folder and pass it InpputGeometry with Spatial Relationship, so i can load only a subset of data. How i can do this?

There is some example?

Thanks

Outcomes