Clean up get_plats.py

This commit is contained in:
Chandler Swift 2025-11-08 13:58:01 -06:00
parent 51a3629794
commit 08b3a0bac5
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell --quiet -p python3 -p python3Packages.requests -i python
#! nix-shell --quiet -p python3 -p python3Packages.requests -i python
import json
import sys
@ -15,13 +15,7 @@ params={
"f": "geojson",
"returnGeometry": "true",
"spatialRel": "esriSpatialRelIntersects",
# {"xmin":-10397214.368951382,"ymin":6023763.834217183,"xmax":-10397185.705065776,"ymax":6023792.498102792,"spatialReference":{"wkid":102100}}
# {"xmin":-10395523.199700572,"ymin":6021824.244624444,"xmax":-10395465.871929357,"ymax":6021881.572395659,"spatialReference":{"wkid":102100}}
"geometry": json.dumps({
# "xmin": -10397313.413735004,
# "ymin": 6024888.239059315,
# "xmax": -10395148.64317237,
# "ymax": 6021777.960551391,
"geometry": json.dumps({ # TODO: why do I need json.dumps here?
"xmin": -10397214.368951382,
"xmax": -10395465.871929357,
"ymin": 6021824.244624444,