240 likes | 366 Views
v. FME Worldwide User Conference - Vancouver. Sep. 21-22, 2006. Building Polygons – the QA Way Bob Janowicz, GIS Innovations, Vancouver, BC. Y. X. A. 1. 2. Z. A Simple 6 Zone Map. Starting with a CAD file that looks like this Donuts Y inside X with X inside A
E N D
v FME Worldwide User Conference - Vancouver Sep. 21-22, 2006 Building Polygons – the QA WayBob Janowicz, GIS Innovations, Vancouver, BC
Y X A 1 2 Z A Simple 6 Zone Map • Starting with aCAD file thatlooks like this • Donuts Y inside Xwith X inside A • Bad line between1 & 2 – double label • (yellow) no label • Label (Z) no area
To Build Clean Areas • Lets review this simple workbench Lines/Polygon Point/Attribute Integration
Y X A 1 2 Z 4 Phases of Processing • Validate linework • Merge lines • Unused – unclosed lines • Validate polygons • Examine holes and donuts • Extend attribution • Validate labels • Areas with NO labels • Areas with multi labels • Labels with NO areas
Building Clean Areas • Line and area (donut) processing Lines/Polygon
Clean Linework • Merge Linework • Find Unused Lines Y X A 1 2
Trans: Linejoiner Merge Lines ** Report NON Lines **
Trans: AreaBuilder • Transformers: • AreaBuilder or • PolygonBuilder • Treat UNUSED_LINEas a fault – to find/fix Y X A 1 2
Understand AreaBuilder • 3 modes Create Donuts/Drop Holes • Yes - No - Drop Holes
AreaBuilder DoNuts Create Donuts = Yes No DropHole Overlaps Drops holes 1:1
Understand PolygonBuilder • Builds each polygon without regard for holes • Can go to DonutBuilder next…
Admin Zones • One answer for each location • AreaBuilder: Create Donuts = YES
Small Zone Filter • Coast of BC • Donut Islands • Remove small ones • Re overlay
Getting Labels • Getting the labels then extending and cleaning up the attributes Point/Attribute
Get Labels • Get CAD labels – ensure they are text • GeometryFilter: keeping only type=text
Coordinate Attributes • Get Coordinates (curr Projection) • Replicate into new fields (Lat & Long) • AttributeReprojector • Reprojects the values in newFields (eg. Lat & Long)
Attribute Cleanup • AttributeRenamer • To adjust names • AttributeKeeper • To get rid ofunwanted junkattributes
Final QA and Polygon • Integrating and QA Areas and Labels Integration
Link Labels & Areas • The magic moment • Overlaying labels • Onto areas • NOTE the use oftracking overlap count + X
Labels w/ NO Area fault • Test the POINT feature to ensure it has one and only one “overlap” Z
Labels in Areas Faults • AttributeFilter to test the AREA feature • IF overlaps=0 then the area has NO Label • IF overlaps > 1 then the area has EXTRA labels
We Did It • The CLEAN ANSWER IS finally here
Thank You • Bob Janowicz (president) GIS Innovations Ltd 310-1200 West 73rd Avenue Vancouver, BC, V6P 6G5 bobj@gis-innovations.bc.ca