This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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", |