SlideShare a Scribd company logo
1 of 27
Download to read offline
Model build ArcPy - FME
Presenter
The
Peak
of
Data
Integration
20
23
James
Botterill
Senior Consultant
1Spatial Australia
The
Peak
of
Data
Integration
20
23
Agenda
1. Species of National Significance
2. Case Study – Raster Gridding
3. Vector to Raster conversion
4. ESRI vs FME raster gridding tools
5. ArcPy within FME – featureclass processing
6. Tips & Tricks
The
Peak
of
Data
Integration
20
23
The
Peak
of
Data
Integration
20
23
Changes to the landscape and native
habitat as a result of human activity have
put many species at risk of extinction.
Ecological communities are unique and
naturally occurring groups of plants and
animals. Their presence can be
determined by factors such as soil
type, position in the landscape,
climate and water availability.
Environment Protection and Biodiversity
Act 1999 (EPBC Act) protects Australia's
native species and ecological
Biodiversity
• identification and listing of species
and ecological communities as
threatened
• development of conservation
advice and recovery plans for listed
species and ecological communities
• register of critical habitat
• recognition of key threatening
processes
• where appropriate, reducing the
impacts of these processes
through threat abatement plans and
non-statutory threat abatement
The
Peak
of
Data
Integration
20
23
Threatened
Ecological
Communities of
Australia
(dcceew.gov.au)
The
Peak
of
Data
Integration
20
23
Threatened Species and
Ecological Communities of
National Environmental
Significance
The
Peak
of
Data
Integration
20
23
Species of National Significance
Information as listed in the Environment
Protection and Biodiversity Act 1999 (EPBC act)
• Ecological community name
• Ecological threatened status
Critically Endangered, Endangered, Vulnerable or
Conservation Dependent
• Indicative occurrence (known and predicted
areas) produced by spatial ecologists
• Cell size for public access
1 km grid resolution (0.01°) or
~10km for species classed as (SNES) sensitive by respective
States and Territories.
• Links to further information in the Species
Profile and Threats Database (SPRAT)
The
Peak
of
Data
Integration
20
23
Why Generalize?
To provide information to the community about Australia’s protected species,
and in line with the Government’s policy of open data access, the
Department’s threatened and migratory species distributions have been
generalized to 1km and 10km
The generalized product is aimed at addressing concerns regarding the
release of detailed locations of species sensitive to illegal collection and
disturbance while still providing public access to the distributions of
threatened species.
Indicative occurrence - the GIS data is coded to indicate species presence
(pres_rank) with:
1 ‘Species or species habitat likely to occur’ and
2 ‘Species or species habitat may occur’.
Data source: https://fed.dcceew.gov.au/datasets/erin::australia-ecological-communities-of-national-environmental-significance-distributions-public-grids/explore
The
Peak
of
Data
Integration
20
23
Processing Species data
Department was seeking to improve spatial generalization methods to process
Species Distributions
• Current automated python scripts are difficult to maintain. Published every 6
months
• Manual steps and QA checks run several times per week to keep it up to date
• Complex set of business rules dictate which species are to use private or public
grids…
• Hiding details for sensitive species
Can an FME workflow replace or support the above requirements?
The
Peak
of
Data
Integration
20
23
Original Polygon
Spatial Generalisation
Species
Distribution
Polygons
SPRAT changes
(insert, update, delete)
Public
1km
Public
10km
CHANGEDATE WORK_PERFORMED FME_DB_OPERATION
20220811 Deyeuxia ramosa (87970) - SEAP new distribution INSERT
20220811 Nematolepis rhytidophylla (64936) - SEAP updated distribution INSERT
20220811 Pherosphaera fitzgeraldii (40324) - SEAP updated distribution UPDATE
20220811 Syncomistes rastellus (88733) - SEAP new distribution INSERT
(filter)
Individual
Taxon
cell assignment type = maximum area
pres_rank = gridcode
priority = 100-gridcode
cell_size = 0.01, 0.1
Generalisation
1. Vector to Raster 2. Raster to Vector
snap
raster
(assign)
Sensitive
Species
46
36
36
36
36
26
26
26
1km Raster Grid
10km Raster Grid
Generalised
Polygon
The
Peak
of
Data
Integration
20
23
ArcPy within FME
The
Peak
of
Data
Integration
20
23
ESRI Gridding
Existing approach….
Polygon to raster conversion
• Cell assignment Maximum Area
• Priority is specified
(100-Presence_Rank) e.g., 100 minus 26 = 74.
The small “Known” presence given largest cell
yields due to high 74 priority
• Environment Snap raster used as a
template raster grid (next slide)
64
64
64
64
74
54
64
74
54
54
74
64
64
64
64
The
Peak
of
Data
Integration
20
23
Snap raster
reference
An environment used to
snap or align an extent
during execution
Snapping usually results in
a larger output extent than
the given extent.
Data source: https://pro.arcgis.com/en/pro-app/latest/tool-reference/environment-settings/how-snap-raster-environment-works.htm
Figure (b) shows the snapped extent after execution.
Figure (a) shows the extent to be snapped.
74
The
Peak
of
Data
Integration
20
23
FME Gridding
Test alternative approaches….
Raster gridding transformers
• RasterNumericCalculator – inefficient to
create entire grid over Australia + marine
• NumericRasteriser - creates single-band
numeric raster representations of vector data
Summary:
• lacks snap/reference grid option
• a dissolve is required as secondary step for
cell assignment
The
Peak
of
Data
Integration
20
23
ArcPRO - Export to Python
Both model builder and the
Geoprocessing “History” have
an option to export Python script
Data Source: https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/modelbuilder/exporting-a-model-to-python.htm
The
Peak
of
Data
Integration
20
23
Feature Class Processing - ArcPy in FME
• AttributeCreator for names of feature
classes
• AttributeCreator for paths to input & output
• Run the ArcPy operation on incoming
feature class using the PythonCaller
transformer
• Read the results back into the FME
workspace with the FeatureReader
The
Peak
of
Data
Integration
20
23
Cell size '0.1', '0.01', '0.001’
equates to 10km, 1km, 100m
Summary
Vector-Raster
Raster to
Vector
Input feature
The
Peak
of
Data
Integration
20
23
Prerequisites: ArcPRO license and spatial analyst exten
Set workspace - _dataset is from working_gdb
FeatureReader
Vector to raster – maximum cell, snapraster, priority
Raster to vector – using output paths
The
Peak
of
Data
Integration
20
23
FME Tips using
Python
• Set environments
• Variables for workspace
cell size = feature.getAttribute(‘_path%’)
arcpy.env.snapraster cell_size
• Replace(‘’, ‘’) if any spaces in paths
• FMElogfile() concatenate attributes in a notification
string and inform geoprocessing progress in the
transaction log.
• Be careful with Feature cache mode
To avoid locks, errors 160001-170000 table exists, click the
overwrite geodatabase in full
Data Source: https://community.safe.com/s/article/using-arcpy-for-fme-feature-processing
The
Peak
of
Data
Integration
20
23
Conclusion
The
Peak
of
Data
Integration
20
23
FME workflow with ArcGeoprocessing
OUTPUTS
fileGDB SNES
Public
Species with
metadata
SDE
SNES
Public
Species
QA report
CHILD WORKSPACE
INPUTS
Workspace
Runner
metadata
Last load date
SPRAT
Find all the
additions/updates
to TaxonIDs
Generalising
ArcPy – Polygon-Raster-Polygon
generaliser_working.gdb & snap raster
Process
individual
Taxons
Species Grids
Business
rules
Sensitive Species Resolution
Synonymy
wkhtmltopdf
PARENT WORKSPACE
The
Peak
of
Data
Integration
20
23
Summary
• ArcGIS gridding functionality &
approach was closer to spatial
generalization requirements for
processing species distribution grids.
• If FME transformers lack ESRI
functionality, incorporate ArcPy to do the
geoprocessing mid workflow.
• Vote up FME Ideas
The
Peak
of
Data
Integration
20
23
Vote up FME Ideas ?
Vote up FME ideas…
https://community.safe.com/s/bridea/a0r4Q00000Hd2XYQAZ/snap-raster-option-like-in-e
sri
1. Sign into FME Community
2. Vote up idea
3. Get your colleagues to vote it up!
The
Peak
of
Data
Integration
20
23
Resources
• DCCEEW
www.dcceew.gov.au/environment/biodiversity/threatened
• ESRI How Polygon To Raster works—ArcGIS Pro
• ESRI ArcPro snap raster
• FME NumericRasteriser Popularity = 167/468
• Using Arcpy for FME Feature Processing
ThankYou!
james.botterill@1spatial.com

More Related Content

Similar to Model Build ArcPy Into Your FME Workflows

CIGRE Presentation
CIGRE PresentationCIGRE Presentation
CIGRE Presentation
Bert Taube
 
Tim Malthus_Towards standards for the exchange of field spectral datasets
Tim Malthus_Towards standards for the exchange of field spectral datasetsTim Malthus_Towards standards for the exchange of field spectral datasets
Tim Malthus_Towards standards for the exchange of field spectral datasets
TERN Australia
 
Cambridge University Geospatial Metadata Workshop 20110524
Cambridge University Geospatial Metadata Workshop 20110524Cambridge University Geospatial Metadata Workshop 20110524
Cambridge University Geospatial Metadata Workshop 20110524
EDINA, University of Edinburgh
 
TEF_GigFire_0 5
TEF_GigFire_0 5TEF_GigFire_0 5
TEF_GigFire_0 5
Raj Ojha
 
Celebration of applied computational and industrial mathematics june 12 13th ...
Celebration of applied computational and industrial mathematics june 12 13th ...Celebration of applied computational and industrial mathematics june 12 13th ...
Celebration of applied computational and industrial mathematics june 12 13th ...
Bronwyn Harch (FTSE)
 
Oxford University Geospatial Metadata Workshop 20110415
Oxford University Geospatial Metadata Workshop 20110415Oxford University Geospatial Metadata Workshop 20110415
Oxford University Geospatial Metadata Workshop 20110415
EDINA, University of Edinburgh
 
Data accessibility and the role of informatics in predicting the biosphere
Data accessibility and the role of informatics in predicting the biosphereData accessibility and the role of informatics in predicting the biosphere
Data accessibility and the role of informatics in predicting the biosphere
Alex Hardisty
 

Similar to Model Build ArcPy Into Your FME Workflows (20)

USING E-INFRASTRUCTURES FOR BIODIVERSITY CONSERVATION - Module 3
USING E-INFRASTRUCTURES FOR BIODIVERSITY CONSERVATION - Module 3USING E-INFRASTRUCTURES FOR BIODIVERSITY CONSERVATION - Module 3
USING E-INFRASTRUCTURES FOR BIODIVERSITY CONSERVATION - Module 3
 
Arc gis fl_biomass
Arc gis fl_biomassArc gis fl_biomass
Arc gis fl_biomass
 
Grid Projects In The US July 2008
Grid Projects In The US July 2008Grid Projects In The US July 2008
Grid Projects In The US July 2008
 
CIGRE Presentation
CIGRE PresentationCIGRE Presentation
CIGRE Presentation
 
Tim Malthus_Towards standards for the exchange of field spectral datasets
Tim Malthus_Towards standards for the exchange of field spectral datasetsTim Malthus_Towards standards for the exchange of field spectral datasets
Tim Malthus_Towards standards for the exchange of field spectral datasets
 
DEMETER H2020 project overview
DEMETER H2020 project overviewDEMETER H2020 project overview
DEMETER H2020 project overview
 
DEMETER Overview
DEMETER OverviewDEMETER Overview
DEMETER Overview
 
Why The Historic Environment Needs A Spatial Data Infrastructure
Why The Historic Environment Needs A Spatial Data InfrastructureWhy The Historic Environment Needs A Spatial Data Infrastructure
Why The Historic Environment Needs A Spatial Data Infrastructure
 
Cambridge University Geospatial Metadata Workshop 20110524
Cambridge University Geospatial Metadata Workshop 20110524Cambridge University Geospatial Metadata Workshop 20110524
Cambridge University Geospatial Metadata Workshop 20110524
 
TEF_GigFire_0 5
TEF_GigFire_0 5TEF_GigFire_0 5
TEF_GigFire_0 5
 
UK e-Infrastructure for Research - UK/USA HPC Workshop, Oxford, July 2015
UK e-Infrastructure for Research - UK/USA HPC Workshop, Oxford, July 2015UK e-Infrastructure for Research - UK/USA HPC Workshop, Oxford, July 2015
UK e-Infrastructure for Research - UK/USA HPC Workshop, Oxford, July 2015
 
Celebration of applied computational and industrial mathematics june 12 13th ...
Celebration of applied computational and industrial mathematics june 12 13th ...Celebration of applied computational and industrial mathematics june 12 13th ...
Celebration of applied computational and industrial mathematics june 12 13th ...
 
IRJET- LORA based Solid Waste Management
IRJET- LORA based Solid Waste ManagementIRJET- LORA based Solid Waste Management
IRJET- LORA based Solid Waste Management
 
Web services for sharing germplasm data sets, at FAO in Rome (2006)
Web services for sharing germplasm data sets, at FAO in Rome (2006)Web services for sharing germplasm data sets, at FAO in Rome (2006)
Web services for sharing germplasm data sets, at FAO in Rome (2006)
 
Northumbria University Geospatial Metadata Workshop 20110505
Northumbria University Geospatial Metadata Workshop 20110505Northumbria University Geospatial Metadata Workshop 20110505
Northumbria University Geospatial Metadata Workshop 20110505
 
Using FME Cloud, Space Data and R Libraries to Help Assess Production Impact ...
Using FME Cloud, Space Data and R Libraries to Help Assess Production Impact ...Using FME Cloud, Space Data and R Libraries to Help Assess Production Impact ...
Using FME Cloud, Space Data and R Libraries to Help Assess Production Impact ...
 
Oxford University Geospatial Metadata Workshop 20110415
Oxford University Geospatial Metadata Workshop 20110415Oxford University Geospatial Metadata Workshop 20110415
Oxford University Geospatial Metadata Workshop 20110415
 
Data Provenance for Data Science
Data Provenance for Data ScienceData Provenance for Data Science
Data Provenance for Data Science
 
Data accessibility and the role of informatics in predicting the biosphere
Data accessibility and the role of informatics in predicting the biosphereData accessibility and the role of informatics in predicting the biosphere
Data accessibility and the role of informatics in predicting the biosphere
 
USING E-INFRASTRUCTURES FOR BIODIVERSITY CONSERVATION - Module 5
USING E-INFRASTRUCTURES FOR BIODIVERSITY CONSERVATION - Module 5USING E-INFRASTRUCTURES FOR BIODIVERSITY CONSERVATION - Module 5
USING E-INFRASTRUCTURES FOR BIODIVERSITY CONSERVATION - Module 5
 

More from Safe Software

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial DataCloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Safe Software
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration WorkflowsIgniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software
 
Introducing the New FME Community Webinar - Feb 21, 2024 (2).pdf
Introducing the New FME Community Webinar - Feb 21, 2024 (2).pdfIntroducing the New FME Community Webinar - Feb 21, 2024 (2).pdf
Introducing the New FME Community Webinar - Feb 21, 2024 (2).pdf
Safe Software
 
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial DataCloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Safe Software
 
Taking Off with FME: Elevating Airport Operations to New Heights
Taking Off with FME: Elevating Airport Operations to New HeightsTaking Off with FME: Elevating Airport Operations to New Heights
Taking Off with FME: Elevating Airport Operations to New Heights
Safe Software
 
Initiating and Advancing Your Strategic GIS Governance Strategy
Initiating and Advancing Your Strategic GIS Governance StrategyInitiating and Advancing Your Strategic GIS Governance Strategy
Initiating and Advancing Your Strategic GIS Governance Strategy
Safe Software
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software
 

More from Safe Software (20)

The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action:  Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action:  Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
The Critical Role of Spatial Data in Today's Data Ecosystem
The Critical Role of Spatial Data in Today's Data EcosystemThe Critical Role of Spatial Data in Today's Data Ecosystem
The Critical Role of Spatial Data in Today's Data Ecosystem
 
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial DataCloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration WorkflowsIgniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
Mastering MicroStation DGN: How to Integrate CAD and GIS
Mastering MicroStation DGN: How to Integrate CAD and GISMastering MicroStation DGN: How to Integrate CAD and GIS
Mastering MicroStation DGN: How to Integrate CAD and GIS
 
Introducing the New FME Community Webinar - Feb 21, 2024 (2).pdf
Introducing the New FME Community Webinar - Feb 21, 2024 (2).pdfIntroducing the New FME Community Webinar - Feb 21, 2024 (2).pdf
Introducing the New FME Community Webinar - Feb 21, 2024 (2).pdf
 
Breaking Barriers & Leveraging the Latest Developments in AI Technology
Breaking Barriers & Leveraging the Latest Developments in AI TechnologyBreaking Barriers & Leveraging the Latest Developments in AI Technology
Breaking Barriers & Leveraging the Latest Developments in AI Technology
 
Best Practices to Navigating Data and Application Integration for the Enterpr...
Best Practices to Navigating Data and Application Integration for the Enterpr...Best Practices to Navigating Data and Application Integration for the Enterpr...
Best Practices to Navigating Data and Application Integration for the Enterpr...
 
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial DataCloud Revolution: Exploring the New Wave of Serverless Spatial Data
Cloud Revolution: Exploring the New Wave of Serverless Spatial Data
 
New Year's Fireside Chat with Safe Software’s Founders
New Year's Fireside Chat with Safe Software’s FoundersNew Year's Fireside Chat with Safe Software’s Founders
New Year's Fireside Chat with Safe Software’s Founders
 
Taking Off with FME: Elevating Airport Operations to New Heights
Taking Off with FME: Elevating Airport Operations to New HeightsTaking Off with FME: Elevating Airport Operations to New Heights
Taking Off with FME: Elevating Airport Operations to New Heights
 
Initiating and Advancing Your Strategic GIS Governance Strategy
Initiating and Advancing Your Strategic GIS Governance StrategyInitiating and Advancing Your Strategic GIS Governance Strategy
Initiating and Advancing Your Strategic GIS Governance Strategy
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
 

Recently uploaded

Recently uploaded (20)

Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 

Model Build ArcPy Into Your FME Workflows

  • 3. The Peak of Data Integration 20 23 Agenda 1. Species of National Significance 2. Case Study – Raster Gridding 3. Vector to Raster conversion 4. ESRI vs FME raster gridding tools 5. ArcPy within FME – featureclass processing 6. Tips & Tricks
  • 5. The Peak of Data Integration 20 23 Changes to the landscape and native habitat as a result of human activity have put many species at risk of extinction. Ecological communities are unique and naturally occurring groups of plants and animals. Their presence can be determined by factors such as soil type, position in the landscape, climate and water availability. Environment Protection and Biodiversity Act 1999 (EPBC Act) protects Australia's native species and ecological Biodiversity • identification and listing of species and ecological communities as threatened • development of conservation advice and recovery plans for listed species and ecological communities • register of critical habitat • recognition of key threatening processes • where appropriate, reducing the impacts of these processes through threat abatement plans and non-statutory threat abatement
  • 7. The Peak of Data Integration 20 23 Threatened Species and Ecological Communities of National Environmental Significance
  • 8. The Peak of Data Integration 20 23 Species of National Significance Information as listed in the Environment Protection and Biodiversity Act 1999 (EPBC act) • Ecological community name • Ecological threatened status Critically Endangered, Endangered, Vulnerable or Conservation Dependent • Indicative occurrence (known and predicted areas) produced by spatial ecologists • Cell size for public access 1 km grid resolution (0.01°) or ~10km for species classed as (SNES) sensitive by respective States and Territories. • Links to further information in the Species Profile and Threats Database (SPRAT)
  • 9. The Peak of Data Integration 20 23 Why Generalize? To provide information to the community about Australia’s protected species, and in line with the Government’s policy of open data access, the Department’s threatened and migratory species distributions have been generalized to 1km and 10km The generalized product is aimed at addressing concerns regarding the release of detailed locations of species sensitive to illegal collection and disturbance while still providing public access to the distributions of threatened species. Indicative occurrence - the GIS data is coded to indicate species presence (pres_rank) with: 1 ‘Species or species habitat likely to occur’ and 2 ‘Species or species habitat may occur’. Data source: https://fed.dcceew.gov.au/datasets/erin::australia-ecological-communities-of-national-environmental-significance-distributions-public-grids/explore
  • 10. The Peak of Data Integration 20 23 Processing Species data Department was seeking to improve spatial generalization methods to process Species Distributions • Current automated python scripts are difficult to maintain. Published every 6 months • Manual steps and QA checks run several times per week to keep it up to date • Complex set of business rules dictate which species are to use private or public grids… • Hiding details for sensitive species Can an FME workflow replace or support the above requirements?
  • 11. The Peak of Data Integration 20 23 Original Polygon Spatial Generalisation Species Distribution Polygons SPRAT changes (insert, update, delete) Public 1km Public 10km CHANGEDATE WORK_PERFORMED FME_DB_OPERATION 20220811 Deyeuxia ramosa (87970) - SEAP new distribution INSERT 20220811 Nematolepis rhytidophylla (64936) - SEAP updated distribution INSERT 20220811 Pherosphaera fitzgeraldii (40324) - SEAP updated distribution UPDATE 20220811 Syncomistes rastellus (88733) - SEAP new distribution INSERT (filter) Individual Taxon cell assignment type = maximum area pres_rank = gridcode priority = 100-gridcode cell_size = 0.01, 0.1 Generalisation 1. Vector to Raster 2. Raster to Vector snap raster (assign) Sensitive Species 46 36 36 36 36 26 26 26 1km Raster Grid 10km Raster Grid Generalised Polygon
  • 13. The Peak of Data Integration 20 23 ESRI Gridding Existing approach…. Polygon to raster conversion • Cell assignment Maximum Area • Priority is specified (100-Presence_Rank) e.g., 100 minus 26 = 74. The small “Known” presence given largest cell yields due to high 74 priority • Environment Snap raster used as a template raster grid (next slide) 64 64 64 64 74 54 64 74 54 54 74 64 64 64 64
  • 14. The Peak of Data Integration 20 23 Snap raster reference An environment used to snap or align an extent during execution Snapping usually results in a larger output extent than the given extent. Data source: https://pro.arcgis.com/en/pro-app/latest/tool-reference/environment-settings/how-snap-raster-environment-works.htm Figure (b) shows the snapped extent after execution. Figure (a) shows the extent to be snapped. 74
  • 15. The Peak of Data Integration 20 23 FME Gridding Test alternative approaches…. Raster gridding transformers • RasterNumericCalculator – inefficient to create entire grid over Australia + marine • NumericRasteriser - creates single-band numeric raster representations of vector data Summary: • lacks snap/reference grid option • a dissolve is required as secondary step for cell assignment
  • 16. The Peak of Data Integration 20 23 ArcPRO - Export to Python Both model builder and the Geoprocessing “History” have an option to export Python script Data Source: https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/modelbuilder/exporting-a-model-to-python.htm
  • 17. The Peak of Data Integration 20 23 Feature Class Processing - ArcPy in FME • AttributeCreator for names of feature classes • AttributeCreator for paths to input & output • Run the ArcPy operation on incoming feature class using the PythonCaller transformer • Read the results back into the FME workspace with the FeatureReader
  • 18. The Peak of Data Integration 20 23 Cell size '0.1', '0.01', '0.001’ equates to 10km, 1km, 100m Summary Vector-Raster Raster to Vector Input feature
  • 19. The Peak of Data Integration 20 23 Prerequisites: ArcPRO license and spatial analyst exten Set workspace - _dataset is from working_gdb FeatureReader Vector to raster – maximum cell, snapraster, priority Raster to vector – using output paths
  • 20. The Peak of Data Integration 20 23 FME Tips using Python • Set environments • Variables for workspace cell size = feature.getAttribute(‘_path%’) arcpy.env.snapraster cell_size • Replace(‘’, ‘’) if any spaces in paths • FMElogfile() concatenate attributes in a notification string and inform geoprocessing progress in the transaction log. • Be careful with Feature cache mode To avoid locks, errors 160001-170000 table exists, click the overwrite geodatabase in full Data Source: https://community.safe.com/s/article/using-arcpy-for-fme-feature-processing
  • 22. The Peak of Data Integration 20 23 FME workflow with ArcGeoprocessing OUTPUTS fileGDB SNES Public Species with metadata SDE SNES Public Species QA report CHILD WORKSPACE INPUTS Workspace Runner metadata Last load date SPRAT Find all the additions/updates to TaxonIDs Generalising ArcPy – Polygon-Raster-Polygon generaliser_working.gdb & snap raster Process individual Taxons Species Grids Business rules Sensitive Species Resolution Synonymy wkhtmltopdf PARENT WORKSPACE
  • 23. The Peak of Data Integration 20 23 Summary • ArcGIS gridding functionality & approach was closer to spatial generalization requirements for processing species distribution grids. • If FME transformers lack ESRI functionality, incorporate ArcPy to do the geoprocessing mid workflow. • Vote up FME Ideas
  • 25. Vote up FME ideas… https://community.safe.com/s/bridea/a0r4Q00000Hd2XYQAZ/snap-raster-option-like-in-e sri 1. Sign into FME Community 2. Vote up idea 3. Get your colleagues to vote it up!
  • 26. The Peak of Data Integration 20 23 Resources • DCCEEW www.dcceew.gov.au/environment/biodiversity/threatened • ESRI How Polygon To Raster works—ArcGIS Pro • ESRI ArcPro snap raster • FME NumericRasteriser Popularity = 167/468 • Using Arcpy for FME Feature Processing