Skip to content

Instantly share code, notes, and snippets.

View atlefren's full-sized avatar

Atle Frenvik Sveen atlefren

View GitHub Profile
@atlefren
atlefren / .gitignore
Created August 3, 2021 07:39
Setting up test reporting and code coverage on Azure Devops pipelines in a js/ts project with jest
coverage
test/junit.xml
#Adding code coverage to Azure Devops, inspired by https://dejanstojanovic.net/aspnet/2020/may/setting-up-code-coverage-reports-in-azure-devops-pipeline/
# Run tests, add "collect" option
- task: DotNetCoreCLI@2
displayName: 'Run tests'
inputs:
command: test
projects: '**/*Tests/*.csproj'
arguments: '--configuration $(buildConfiguration) --collect "XPlat Code coverage"'

An Event-Based Pipeline for Geospatial Vector Data Management

The Internet and digitization have changed the way geospatial data is distributed and has made map data easier to find than ever. New technologies and techniques for surveying, monitoring, and disseminating geospatial data has created a data abundance. The digitization of maps also brought changes to how map data is created and maintained. Traditionally, the high cost of surveying meant that map production was the domain of the state and large corporations. New methods and technologies paved the way for crowdsourced map data, termed Volunteered Geographical Information (VGI). In parallel with this development, states and governmental institutions changed their practices. The concept of Open Data challenged and changed the practice of selling map data to third parties, and more and more governmental geospatial data is now available under an open licence, free of charge.

Thus, due to sources such as VGI and Open Data, geospatial data is no longer

#Dump schema, with no owner, custom format
pg_dump -d DATABASE -n SCHEMA -O -F c -f filename.dmp
#Restore
pg_restore -d DATABASE filename.dmp
Hei og takk for e-post!
Jeg innrømmer lett at det ikke er enkelt å legge dette fram på en forståelig måte. Spørsmålet ditt er godt.
Jo visst,- det ble undersøkt og planlagt i forkant av omleggingen 3/8. Det ble bla gjennomført grundige undersøkelser
som gav viktig kunnskap om reisebehovene. Vi må erkjenne og respektere at noen er misfornøyde med det nye tilbudet.
Jeg er av den oppfatningen at det er behov for å gjøre justeringer på rutetilbudet. uten at jeg kan gi noen løfter om i
hvor stort omfang.
Grunnen til at det tross undersøkelser/planlegging, påløp ekstra kostnader skyldes at ikke all infrastrukturen er
import sys
import os
from msrest.exceptions import ClientRequestError
from azure.keyvault import KeyVaultClient, KeyVaultAuthentication
from azure.common.credentials import ServicePrincipalCredentials
def get_kv_client(client_id, client_secret, tenant):
credentials = None
from shapely.geometry import LineString
import random
def get_coord_rand(prev=None):
delta_lat = random.uniform(-0.1, 0.1)
delta_lon = random.uniform(-0.1, 0.1)
if delta_lat == 0.0 and delta_lon == 0.0:
return get_coord_rand(prev)
Adidas Adolf (ADI) DASler
ALDI ALbrecht DIskont
ASKO AS KOlonialgrossistene
Bama BAnan-MAthiesen
Denofa De NOrske FAbrikker
Fedex FEDeral EXpress
FRAMO FRAnk MOhn
Glamox GLAtt Matt OXidised
HaPå HAmar PÅlegg
Homotor Holmgren og Olsen MOTOR
This file has been truncated, but you can view the full file.
[
{
"id": "https://kulturminnesok.no/userimage/cee352e3d2204aebab36f2377e5ed3b8/sand-kirke-sett-fra-nordvest-jpg",
"dateModified": "2016-09-30 12:08:29.782000",
"contentLocation": {
"@id": "https://data.kulturminne.no/askeladden/lokalitet/85373",
"@type": "Place",
"address": {
"addressLocality": [
"Nord-Odal"
# -*- coding: utf-8 -*-
from itertools import product
def diff(l1, l2):
if len(l1) != len(l2):
return 1000000
diff = 0