Sep. 21-22, 2006 v Tcl and Mapping Files – Best Practices Peter Laulund, National Survey and Cadastre, Denmark FME Worldwide User Conference - Vancouver.

Slides:



Advertisements
Similar presentations
Danmarks Statistik 2004 FME & Geodatabases - experiences and expectations in KMS Peter Laulund Nationale Geodatabank, KMS
Advertisements

Microsoft Dynamics AX 2009 Integration and Development with.NET Framework Business Intelligence: OLAP and Analytics.
Sep , 2006 v FME Worldwide User Conference - Vancouver FME Translation Customization with Python Tom Weir, Safe Software.
GP2013 (R2) New features in GP2013 (R2). New Ribbon for windows Edit List is the Print button on the right without the paper background Action pane can.
This presentation is intended as a detailed WebEx, to bring potential customers to an understanding of Dream Report capabilities. This presentation focuses.
D A T A C O L L E C T I O N L I M I T E D ROMDAS DataView Software.
20-753: Fundamentals of Web Programming 1 Lecture 11: Web Server Case Study Fundamentals of Web Programming Lecture 11: Web Server Case Study.
The Collections Keeper A collections management system Brian J. Mullen.
The MetaDater Model and the formation of a GRID for the support of social research John Kallas Greek Social Data Bank National Center for Social Research.
Mapping between Scene and Screen. Screen (0, W-1) (W-1, H-1) (W-1, 0)(0, 0) Projection Plane (Xmin, Ymin)(Xmax, Ymin) (Xmax, Ymax) (Xmin, Ymax) Screen.
Writing Tcl Scripts Outline Goal Reading Syntax Data Types
Sep. 21, 2006 v FME Worldwide User Conference - Vancouver Geomatics and FME from a Corporate Perspective Nadia Shahriari Namini – City of Calgary, Alberta.
AR Invoices To Customers Presented by Chitra Kanakaraj.
SSURGO Dataset to File Geodatabase Import Tool One Example of Extending Capabilities through Python 2013 IGIC Conference Muncie, Indiana Chris Morse, NRCS.
©2011 Quest Software, Inc. All rights reserved. Steve Walch, Senior Product Manager Blog: November, 2011 Partner Training Webcast.
Team - CA CSCI 5234 Web Security.  Collect and document information of ecommerce security mechanisms.  Using: wiki engine for collaboration.
Managing Data Interoperability with FME Tony Kent Applications Engineer IMGS.
Automated Integrations An End-to-End Solution August 15, 2008.
PI Data Access via OLE DB/SQL
Using Microsoft ACCESS to develop small to medium applications on campus.
Sep , 2006 v FME Worldwide User Conference - Vancouver What’s New in ArcGIS Data Interoperability Extension Kim Avery, ESRI, California, USA, and.
Sep , 2006 v FME Worldwide User Conference - Vancouver Flexible Extraction and Transformation from ArcSDE to AutoCad Ulf Månsson, SWECO Position.
The Research on Credibility of Knowledge Management System Wang FanLin Department of Accounting Capital University of Economic Business Beijing, China.
Clarity Educational Community Enhanced Functionality and Integration Advanced GEL Scripts Presented by: James Gille | Date Prepared:
Flood risk assessment Arjen Markus Deltares (previous name: WL | delft hydraulics)
1 In the good old days... Years ago… the WWW was made up of (mostly) static documents. –Each URL corresponded to a single file stored on some hard disk.
Using Describe. Topics How to use describe? Retrieving Descriptive Information about data.
TCL/Tk Based Environment for Mixed-Signal Circuit Design System Description Software Architecture Examples Future Directions Summary.
Common Servers in a Workplace Environment Brandon Reynolds Computer Electronic Networking Dept. of Technology, Eastern Kentucky University.
Data Interoperability Basics Bruce Harold & Dale Lutz.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Sep , 2006 v FME Worldwide User Conference - Vancouver Customizing SpatialDirect Ken Bragg, Safe Software, Vancouver, BC.
SQL Server User Group Meeting Reporting Services Tips & Tricks Presented by Jason Buck of Custom Business Solutions.
CBEO Portal Presentation 2/6/2008, 4:30pm EST SDSC Or link from

Technical Workshops | Esri International User Conference San Diego, California Creating Geoprocessing Services Kevin Hibma, Scott Murray July 25, 2012.
What’s new in Kentico CMS 5.0 Michal Neuwirth Product Manager Kentico Software.
MetaLib Deep-Link & Search Box Generator Stephen Elfstrand Head, Library Systems and Circulation.
Graph Data Analytics Arka Mukherjee, Ph.D. Global IDs Resolving Complexity at an Enterprise Scale.
13 Copyright © 2009, Oracle. All rights reserved. Integrating with Oracle Business Intelligence Enterprise Edition (OBI EE)
Sep , 2006 v FME Worldwide User Conference - Vancouver Using FME Objects Python API to Provide Platform Independent Translations Andrew Smith, Lagen.
© 2006 Cisco Systems, Inc. All rights reserved.1.
Map3d NCRR Using map3d “Looking at my data has never been so much fun!”
Esri UC 2014 | Technical Workshop | Creating Geoprocessing Services Kevin Hibma.
- Joiner Transformation. Introduction ►Transformations help to transform the source data according to the requirements of target system and it ensures.
Networks Overview of a Network Web Ftp Newsgroups.
Project 5 : programming ArcObject with VBA Part I Vector data Sherry Fu CE 697V Nov. 30, 2006.
CMap Version 0.16 Ben Faga. CMap CMap Version 0.16 Bug fixes and code optimizations More intuitive menu system Asynchronous loading of comparative map.
1 MSTE Visual SourceSafe For more information, see:
Algebra 2 Fall Semester Exam Review Test Format Final Exam is all calculator 35 Questions All Multiple Choice.
Hyperion Artifact Life Cycle Management Agenda  Overview  Demo  Tips & Tricks  Takeaways  Queries.
Introduction to Programming with Tcl. Introduction Using two languages  C++ for “ data ”  Otcl for control Tcl has been widely used as a scripting language.
Clip versus Overlay Module 4:. Module 3: Project Programs ArcGI S ArcCatalo g ArcMap ArcToolbox.
Developer Exam Preparation Thom Robbins Bryan Soltis
Can you do this in SmarTeam?
Canadian Bioinformatics Workshops
1 Inside Module 3 Working with Eloquence Page n Commands to access Eloquence databases2 n Opening and closing a database3 n Eloquence and Base Command4.
Space FSW Conference 2016 Matthew Conte Software Engineer
CVS – concurrent versions system
8-5 Exponential and Logarithmic Equations
Dynamic SQL: Writing Efficient Queries on the Fly
Final Project: Read from a csv file and write to a database table
Solve Linear and Quadratic Systems Algebraically
Dynamic SQL: Writing Efficient Queries on the Fly
“Looking at my data has never been so much fun!”
Data Warehouse Student Data User Group Meeting October 26, 2016
The Real Zeros of a Polynomial Function
The Real Zeros of a Polynomial Function
Visual Manipulation Relationship Network for Autonomous Robotics
Azure Data Factory V2: SSIS in the Cloud or Not?
Presentation transcript:

Sep , 2006 v Tcl and Mapping Files – Best Practices Peter Laulund, National Survey and Cadastre, Denmark FME Worldwide User Conference - Vancouver

FME and TCL 2 Agenda  Tcl plays a big role in my mapping files. It is used for  batch processing  dynamically writing part of the mapping file  processing the features  and pre and post processing the data.  In this presentation I will discuss different aspects of how I structure a mapping file, with special focus on TCL.

FME and TCL 3 Demo Mapping File Structure FmeViewer game.csv PARAM.FME MAIN.FME SPIL.FMI fme.exe MAIN.FME INIT.FMI MAIN.FME FLYT.FMI *.ffs fme.exe

FME and TCL 4 Structure of Mapping File Complex  Build by modules  Placed in a common structure  ‘Metadata’ in tables  ‘Transformation’ attributes with common prefix ex. kms_  kms_feature_type, kms_feature_code

FME and TCL 5 Different Levels of Tcl in FME FME_BEGIN/END_TCL fmeObjects tcl INCLUDE [ script ] Tcl2 source … Tcl2( proc ) fme.exe script.tcl

FME and TCL 6 Command Line  Syntaks - Fme.exe script.tcl  Used for batch processing and chaining together more than one process together proc spil::flyt {} { global header fil lappend cmd fme.exe MAIN.FME --Modul FLYT …….. lappend cmd --from [ FME_GetAttribute from ] lappend cmd --to [ FME_GetAttribute to ] eval exec $cmd 2> NUL: eval exec fmeview.exe /ownffs ${::gsParth2App}spil/$fil & } proc spil::flyt {} { global header fil lappend cmd fme.exe MAIN.FME --Modul FLYT …….. lappend cmd --from [ FME_GetAttribute from ] lappend cmd --to [ FME_GetAttribute to ] eval exec $cmd 2> NUL: eval exec fmeview.exe /ownffs ${::gsParth2App}spil/$fil & }

FME and TCL 7 INCLUDE [.. script …]  Used to initiate the mapping file  putting in MACRO pairs  Lookup tables  _DEF lines  INCLUDING Factory’s or modules INCLUDE [ switch -- $(Modul) { \ SPIL { puts "MACRO SourceFormat TEXTLINE" } \ INIT { puts "MACRO DestFormat FFS" } \ FLYT { puts "MACRO SourceFormat FFS" ; \ puts "MACRO DestFormat FFS" }}] INCLUDE [ switch -- $(Modul) { \ SPIL { puts "MACRO SourceFormat TEXTLINE" } \ INIT { puts "MACRO DestFormat FFS" } \ FLYT { puts "MACRO SourceFormat FFS" ; \ puts "MACRO DestFormat FFS" }}]

FME and TCL 8 Tcl2  Work on the feature and ‘dataset’ level  Has a global namespace proc init::tilpasBrik {id} { variable brikPos FME_Execute Bounds xmin xmax ymin ymax FME_Execute Offset [expr $brikPos($id,x) - [FME_GetAttribute xmax] + … ] [expr $brikPos($id,y) - [FME_GetAttribute ymin] + … ] FME_UnsetAttributes xmin xmax ymin ymax skak_font fme_text_size fme_text_string } proc init::tilpasBrik {id} { variable brikPos FME_Execute Bounds xmin xmax ymin ymax FME_Execute Offset [expr $brikPos($id,x) - [FME_GetAttribute xmax] + … ] [expr $brikPos($id,y) - [FME_GetAttribute ymin] + … ] FME_UnsetAttributes xmin xmax ymin ymax skak_font fme_text_size fme_text_string } Tcl2 set gsParth2App $(mf_root) ; \ set gx0 $(x0); set gy0 $(y0); set gdxy $(dxy) ; \ source $(FME_MF_DIR_UNIX)/TCL/$(Modul).TCL ; Tcl2 set gsParth2App $(mf_root) ; \ set gx0 $(x0); set gy0 $(y0); set gdxy $(dxy) ; \ source $(FME_MF_DIR_UNIX)/TCL/$(Modul).TCL ;

FME and TCL 9 Tcl Log file Felter R. PiepelineW. PiepelineWriter Tcl script Reader

FME and TCL 10 FME_BEGIN/END_TCL  Used to pre- and post-processing the translation  creating directory’s and copying documentation to dataset  zipping the dataset  ing  copying the data to a FTP server  logging the translation to a database or file

FME and TCL 11 Conclusion  Tcl works on many levels in the mapping file  It gives a dynamic dimension to mapping files  You can manipulate both attributes and geometry  The global namespace means that Tcl is more than just a new function  It can integrate FME with other programs

FME and TCL 12 Links   Wiki about tcl and tk with many examples   tcl and tk documentation