the danish lpis system (imk2) - cartocon · 2019. 12. 23. · the domain 22 november 2019 4 the...

16
22 NOVEMBER 2019 THE DANISH LPIS SYSTEM (IMK2) 1 The Danish LPIS system for agricultural subsidy (IMK2) Enterprise GIS using Open Source Tommy Andersen, [email protected]

Upload: others

Post on 29-Aug-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

22 NOVEMBER 2019

THE DANISH LPIS SYSTEM (IMK2) 1

The Danish LPIS system for agricultural subsidy (IMK2) Enterprise GIS using Open Source

Tommy Andersen, [email protected]

Page 2: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

22 NOVEMBER 2019

THE DANISH LPIS SYSTEM (IMK2) 2

Page 3: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

Agenda

22 NOVEMBER 2019

THE DANISH LPIS SYSTEM (IMK2) 3

› What is IMK2?

› System environment

› Technology stack

› Scalability

› Mobile app development with Open Source

Page 4: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

The domain

22 NOVEMBER 2019

THE DANISH LPIS SYSTEM (IMK2) 4

› A significant part of the EU budget is spent on agricultural subsidy through the Common Agricultural Policy (CAP)

› Each member state have one or more accredited paying agencies

› In Denmark there is one single paying agency - The Danish Agricultural Agency

› Spatial location, extent and proximity are important factors when evaluating a subsidy application.

› IMK2 is the GIS application handling all geospatial aspects of CAP management in the Danish Agricultural Agency

Page 5: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

The Danish IACS/LPIS organisation

22 NOVEMBER 2019

THE DANISH LPIS SYSTEM (IMK2) 5

› Paying Agency in Denmark: - The Danish Agricultural Agency

› IACS Software Provider: - Formpipe Software A/S - CGI Denmark

› LPIS Software Provider: - COWI A/S

Page 6: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

Danish Agriculture Agency - LPIS/IMK2

6

• IMK2 (LPIS) handles the geographical part of the farmers application, the agency's case processing, control and payments related to EU agricultural subsidies.

• With some 40,000 applications a year and highly complex GIS calculations based on some 200 map layers, the system makes extremely high demands on system performance and reliability.

• Application of satellite data in relation to future EU CAP reform. (E.g. MOIST, crop identification etc.)

THE DANISH LPIS SYSTEM (IMK2)

22 NOVEMBER 2019

Page 7: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

IACS and LPIS interaction

7

THE DANISH LPIS SYSTEM (IMK2)

22 NOVEMBER 2019

Page 8: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

High level architecture

8

IMK2 Frontend – browser

IMK2 Frontend – server

ArealService internGeoServer

OracleEksterne kort servicesFiler

Konfig

Konfig

ArealService CAP v1+v2

Konfig

Ticket proxyOpenLayers proxy

Konfig

Frontend

Proxy

Applikation

Data

CAP Services

Adressesøgning

Eksterne systemer

CAP BizTalk

THE DANISH LPIS SYSTEM (IMK2)

22 NOVEMBER 2019

Page 9: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

› Front-end tier

› Client:

› HTML/CSS/JavaScript

› OpenLayers

› AngularJS

› jQWidgets

› Server: .NET WebAPI

Technology – the front-end tier

22 NOVEMBER 2019

THE DANISH LPIS SYSTEM (IMK2) 9

Page 10: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

› Application service tier

› WCF Web Services

› NetTopologySuite (NTS)

› Entity Framework with direct support for NTS

› NTS is the spatial engine of all IMK2 algorithms

› The application service tier is multi-threaded and scaled out on a cluster of web servers.

Technology – the application service tier

22 NOVEMBER 2019

THE DANISH LPIS SYSTEM (IMK2) 10

Page 11: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

› Geodata service tier

› GeoServer with these extensions:

› Oracle data access

› Control Flow

› Improved control of concurrent request

› Scripting Extension – Python

› Hooking up custom functionality

› The geodata service tier is scaled out on a cluster of web servers

Technology – the geodata service tier

22 NOVEMBER 2019

THE DANISH LPIS SYSTEM (IMK2) 11

Page 12: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

› Data tier

› Oracle Spatial

› Object Relational Mapping – Entity Framework

› Oracle driver – DevArt dotConnect

› Oracle spatial is only used for 'simple' spatial queries.

Technology – the data tier

22 NOVEMBER 2019

THE DANISH LPIS SYSTEM (IMK2) 12

Page 13: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

› Front-end tier

› Client: HTML/CSS/JavaScript and OpenLayers, AngularJS

› Server: ASP.NET WebAPI

› Application service tier

› WCF WebService and NetTopologySuite

› Geodata service tier

› GeoServer

› Data tier

› Oracle

Technology - overview

13

THE DANISH LPIS SYSTEM (IMK2)

22 NOVEMBER 2019

Page 14: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

Scalability and Load

22 NOVEMBER 2019

THE DANISH LPIS SYSTEM (IMK2) 14

› Approx. 40.000 Danish farmers apply for subsidy on-line

› Peak load on GeoData Service Tier: more than 350.000 map views pr. hour. (~100 maps/s)

› All tiers (except data tier) are scaled out on load-balanced clusters.

Page 15: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

CASE: iOS app for OTSC

22 NOVEMBER 2019

THE DANISH LPIS SYSTEM (IMK2) 15

› Introduced for the 2018 inspection campaign

› Integrated with Trimble high precision GNSS hardware (50 cm)

› All relevant application-data are available to the inspector in the app

› All measurements and observations are recorded in the app and directly transferred to IMK2

› All operations are available in off-line mode using a cached version of the case data

Page 16: The Danish LPIS system (IMK2) - Cartocon · 2019. 12. 23. · The domain 22 NOVEMBER 2019 4 THE DANISH LPIS SYSTEM (IMK2) ›A significant part of the EU budget is spent on agricultural

› iOS

› Xamarin

› Mapsui – Map component for Xamarin

› Sqlite – off-line cache

› Trimble GNSS API

Technology – mobile devices

22 NOVEMBER 2019

THE DANISH LPIS SYSTEM (IMK2) 16