acsgis

mail@pastecode.io avatar
unknown
python
7 months ago
844 B
2
Indexable
Never
import requests

params = {
    "f": "json",
    "returnGeometry": "true",
    "spatialRel": "esriSpatialRelIntersects",
    "geometry": '{"xmin":8111191.684958916,"ymin":2164238.024295792,"xmax":8111344.559015442,"ymax":2164390.8983523175,"spatialReference":{"wkid":102100}}',
    "geometryType": "esriGeometryEnvelope",
    "inSR": "102100",
    "outFields": "*",
    "outSR": "102100",
    "quantizationParameters": '{"mode":"view","originPosition":"upperLeft","tolerance":0.29858214164826463,"extent":{"xmin":266448.7588,"ymin":2090551.1845,"xmax":287157.4513,"ymax":2131483.3267,"spatialReference":{"wkid":32643,"latestWkid":32643}}}',
}

response = requests.get(
    "https://agsmaps.mcgm.gov.in/server/rest/services/RJO/MCGMGIS_Departments_Master_All_Layers/MapServer/457/query", params=params
)

print(response.json())
Leave a Comment