Skip to content

Instantly share code, notes, and snippets.

View jachym's full-sized avatar

Jachym Cepicky jachym

View GitHub Profile
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": []
}
@jachym
jachym / ogc-json.rst
Last active July 21, 2016 19:52
To OGC and JSON topic

To OGC and JSON topic

Introduction

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

#!/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():
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jachym
jachym / dalnice2geojson.py
Created September 16, 2017 23:05
Skript pro převod pokrytí dálničí sítě mobilním signálem CSV do GeoJSON
#!/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=';')
@jachym
jachym / zelenize2pokryti.py
Created September 16, 2017 23:08
Skript pro převod měření síly mobilního signálu na železnici z CSV do GeoJSON
#!/usr/bin/env python3
import csv
import os
import json
def getdata(value):
if value == 'x':
return None
else: