Note
This draft is elaborated based on the talk between Jachym Cepicky and George Percivall (CTO at OGC) at ISPRS congress, Prague 2016. Among other topics, we hit the JSON data format at OGCs position to it. This
MAP | |
WEB | |
METADATA | |
"ows_title" "LPIS Proxy" | |
"ows_onlineresource" "http://localhost/cgi-bin/mapserv?map=/home/jachym/src/tmp/mapserver_lpis/lpisproxy.map" | |
"ows_srs" "EPSG:4326 EPSG:5514 EPSG:102067 EPSG:3857" | |
"ows_abstract" "Proxy for LPIS WFS server http://eagri.cz/public/app/wms/plpis_wfs.fcgi" | |
"ows_enable_request" "*" | |
"ows_fees" "None" | |
"ows_keywordlist" "LPIS, WFS" |
Test execution report | |
wps:Main | |
Overall result: Passed | |
Executed tests | |
ows-main Passed | |
ows-main Passed |
# Integration testing of Web Mapping applications (including web mapping server) using Python | |
Authors: Jáchym Čepický, Magdalena Kabátová, Alžběta Gardoňová, Eva Jelínková | |
Keywords: Python, Integration testing, Continuous integration, Selenium | |
Abstract: | |
A unit test is a test written by the programmer to verify that a relatively small piece of code is doing what it is | |
intended to do. They are narrow in scope, they should be easy to write and execute. The tests are intended for the use |
#!/usr/bin/env python3 | |
import csv | |
import geocoder | |
import json | |
out = { | |
"type": "FeatureCollection", | |
"features": [] | |
} |
#!/usr/bin/env python3 | |
""" | |
Script for updating data produced from LINZ | |
works on local 'linz' database | |
python3 update_temporal_table.py --csv ~/Data/linz/layer-804-changeset.csv --name nz-property-titles | |
nz-property-titles will be converted to schema and table name nz_property_titles.nz_property_titles | |
""" |
import rasterio as rio | |
from rasterio import features | |
from rasterio.rio.helpers import coords, write_features | |
import numpy as np | |
import json | |
from shapely.geometry import asShape | |
from shapely.geometry import mapping | |
def generate_jsons(): |
#!/usr/bin/env python3 | |
import csv | |
import os | |
import json | |
def get_features(filename): | |
with open(filename, newline='') as csvfile: | |
spamreader = csv.reader(csvfile, delimiter=';') |
#!/usr/bin/env python3 | |
import csv | |
import os | |
import json | |
def getdata(value): | |
if value == 'x': | |
return None | |
else: |