Top Banner
FME and FMEServer in SDFE best practice FME and FMEServer in SDFE best practice Peter Laulund Peter Laulund
25

FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

Jul 29, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

FME and FMEServer in SDFEbest practice

FME and FMEServer in SDFEbest practice

Peter LaulundPeter Laulund

Page 2: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

About me

● Working with FME since 1997● Working with FMEServer since 2001● Certifiede professionel 2007● Works at SDFE (KMS, GST)● SQLExecuter and TCLCaller

Page 3: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

About SDFE and FME

● FME and FMEServer● Kortforsyningen.download● Transportbåndet● Datamodtagelsen

Page 4: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

Databank

Services

Validering

Styrelsen for Dataforsyning og Effektivisering

klienterGIS

klienter AppsGIS

AppsAtomFeed Download

Switchboard

WMS WFSFTP HTTP

Rest

AppsWebApps

Data on demand

FMEServer

Filer

Data Relationelle Raster CSV Proprietærer formater

DownloadWeb services

…..

…..

Databank - Oracle

Page 5: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

WorkflowWorkflowToday FME is more than a translator as it has a big number of toolshandling the workflow, like zipping and unzipping, copying files,moving to ftp, running workspaces, etc.

Today FME is more than a translator as it has a big number of toolshandling the workflow, like zipping and unzipping, copying files,moving to ftp, running workspaces, etc.

Page 6: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

FME and Workflow

Reading and writing zip files

File Copy writer – including zipping

Directory and File Pathnames Reader

HttpCaller, FtpCaller

AttributeFileReader/Writer

SystemCaller

………

SQLCreator, SQLExecutere

XMLAppender

FeatureReader

FeatureWriter

WorkspaceRunner

FMEServer…

Tools Structural

Page 7: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

SDFE INSPIRE project

Page 8: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

INSPIRE.fmw

Page 9: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

INSPIRE.fmw - Gml_Writer

Page 10: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

INSPIRE.fmw - Move2server

Page 11: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

Atom feed

Page 12: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

Atom feed

● An Atom feed is a xml file with ‘news’● In this context it is an index to data files● The contend is metadata about the dataset - Time, area, name, bounding

box, link to data● We can view it in a browser● We can use it in a machine to machine scenario● FME reads and write the feed as well as the data● Feeds are mandatory in relation to INSPIRE

Page 13: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

View in a browser

Page 14: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

AtomFeed.fmw

Page 15: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

SQLExecutor

● Run any sql – Select, Insert, Delete● Returns the result of the command● Run pl/sql code● Run more than one command

Page 16: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

AtomFeed – SQLExecuter sql

FME_SQL_DELIMITER ;

UPDATE LOG_ATOMFEED SET STATUS = 1, SKREVET = @Count(feature_count),TID = ( @Timestamp(^s) - $(t0) +1 ) where JOBID = @Value(jobId);

COMMIT ;

SELECT JOBID, FME_JOB_ID, MASKINE, FILNAVN AS "filecopy_source_dataset", DESTPATH AS "dest_dir"

FROM LOG_ATOMFEEDJOIN ( SELECT UNIQUE DATASET, DESTPATH FROM LDS_OPSLAG.LDS_ATOM_INIT ) ONDATASET = TEMAWHERE JOBID = @ Value(jobId)

Page 17: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

AutoAjour

Page 18: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

AutoAjour.fmw

Page 19: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

Part of INSPIRE job view

Page 20: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

AutoAjour jobs this month

Page 21: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

Database and system design

FMEServer

AutoAjour.fmw

Oracle views

INS_<FeatureType><user attributes>sdfe_feature_type

sdfe_sortsdfe_sort_key

JOB_INSPIRE

INS_ATOMFEED

LOG_JOB_INSPIRE

INSPIRE.fmw

AtomFeed.fmw

Log2html.fmw

Oracle tables

LOG_INSPIRE

METADATA

GeoDatabank<FeatureType>

LOG_AUTOAJOUR

SEQUENCE.BatchIdSEQUENCE.JobId

Page 22: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

Summary

Page 23: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

Best practice summary

- Let the database do the job- Use the database for configuration- Log all jobs to the database- Use FME for the workflow- Generic and dynamic workspace- One way trough the workspace- Split job on more than one workspace

Page 24: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

RESOURCESYou can finde the INSPIRE data and Atom feed here

● https://download.kortforsyningen.dk/● https://download.kortforsyningen.dk/feeds/

Page 25: FME and FMEServer in SDFE best practice...About me Working with FME since 1997 Working with FMEServer since 2001 Certifiede professionel 2007 Works at SDFE (KMS, GST) SQLExecuter and

THANK YOU!THANK YOU!

Peter [email protected] [email protected]