Skip to content

Instantly share code, notes, and snippets.

import groovy.json.JsonSlurper
import java.util.concurrent.CompletableFuture
import java.util.concurrent.TimeUnit
import java.util.concurrent.TimeoutException
import java.util.concurrent.CompletionException
def spartenLayerIDsMV = [
kommunikation: [7],
gas: [5, 4, 3, 2, 0]
]
# Perform the WMS request
response = requests.get(
"https://qas.shng.gis.eon.com/server/services/WMS_test_gas/MapServer/WMSServer",
params={
"width": "1345",
"height": "867",
"bbox": "279472.2610416247,5989996.917881116,283905.1244460342,5994060.376001826",
"crs": "EPSG:25833",
"format": "image/png",
"request": "GetMap",
# Define the endpoint URL
url = "https://qas.shng.gis.eon.com/server/rest/services/PrintingService_21_07_2025/GPServer/Tool/submitJob"
# Define the token and headers
token = arcpy.GetSigninToken()
headers = {
"Authorization": f"Bearer {token['token']}"
}
# Define the parameters for the POST request
# Perform the WMS request
response = requests.get(
"https://qas.shng.gis.eon.com/server/services/WMS_test_printing_service/MapServer/WMSServer",
params={
"width": "1345",
"height": "867",
"bbox": "544183.4394701198,6018987.456041505,544522.1414560471,6019205.7866153335",
"crs": "EPSG:25832",
"format": "image/png",
"request": "GetMap",