MapServer docker-compose voorbeeld met lighttpd reverse-proxy, voor het toevoegen van response headers.
- Start docker-compose met:
docker-compose up
- Service draait nu op:
http://localhost/mapserver?service=WMS&request=getcapabilities
// /etc/nginx/headers.js | |
function headers_json(r) { | |
return JSON.stringify(r.headersIn) | |
} | |
export default {headers_json}; |
yq -P < src/coordinate_transformation_api/assets/config.yaml '{"crs": [.crs | to_entries | .[] | .value.uri="http://www.opengis.net/" + (.key | split(":") | join("/0/"))] | from_entries}' |
import requests | |
import json | |
import time | |
import os | |
import pathlib | |
import argparse | |
from urllib.parse import urlparse | |
def main(api_url, featuretypes, format, bbox_rd=None, geofilter=None): |
MIT License | |
Copyright (c) 2023 Anton Bakker | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
#!/usr/bin/env bash | |
# Bash script voor het ophalen van percelen uit de Kadastrale Kaart WFS aan de hand van een adres, met behulp van de PDOK Locatieserver | |
# Author: anton.bakker@kadaster.nl | |
# Dependencies: | |
# - python3 | |
# - jq | |
# - xmllint (libxml2-utils) | |
# - curl | |
set -euo pipefail |
An SDI is a coordinated series of agreements on technology standards, institutional arrangements, and policies that enable the discovery and use of geospatial information by users and for purposes other than those it was created for.[^1]
#!/usr/bin/env python3 | |
from owslib.wcs import WebCoverageService | |
def main(): | |
x = 191313.0 | |
y = 440283.3 # coordinaten in RD/EPSG:28992 van een locatie in NL | |
origin = [10000,618750] # origin van ahn3 coverage in RD/EPSG:28992 | |
cell_size = 0.5 # cell size van ahn3 coverage | |
bbox_size = 50 # in meters - dit is formaat van coverage dat opgehaald wordt | |
bbox_size_pixels=bbox_size/cell_size |
Test script en data voor het testen van de werking van de CSW service in het nationaalgeoregister.nl (NGR).
Depends on csw-client.sh
.
Run ./test.sh
to test CSW publication in NGR.