Beruflich Dokumente
Kultur Dokumente
Edge Matching
ii
Edge Matching
© 2014 Intergraph® Corporation and/or its affiliates. All Rights Reserved.
Printed in the United States of America.
The information contained in this document (the “Work”) is the exclusive property of Intergraph Corporation (“Intergraph”). The Work is
protected under United States copyright law and other international copyright treaties and conventions, to include the Berne and Geneva
Phonograms Conventions, the WIPO Copyright Treaty, and the World Trade Organization.
No part of the Work may be reproduced, stored, or transmitted in any form or by any means, electronic or mechanical, including
photocopying and recording, or by any information storage or retrieval system, except as expressly permitted in writing by Intergraph. All
such requests should be sent to the attention of Manager of Customer Education of the Hexagon Geospatial Division of Intergraph
(“Hexagon Geospatial”) at the following address:
Hexagon Geospatial
5051 Peachtree Corners Circle
Norcross, Georgia 30092-2500 USA
Warning
The Work, and the software that is the subject of the Work, including icons, graphical symbols, file formats, and audio-visual displays, may
be used only as permitted under license from Intergraph; contain confidential and proprietary information of Intergraph and/or third parties
which is protected by patent, trademark, copyright and/or trade secret law; and may not be provided or otherwise made available without
proper authorization. The Work may not be reproduced in any manner, including for resale or redistribution, without the prior written
permission of Intergraph. Use of the software during the training course shall be in accordance with the End User License Agreement
("EULA") delivered with the software. Neither the software nor the software documentation may be reproduced in any manner, without the
prior written permission of Intergraph.
Intergraph, the Intergraph logo, ERDAS, ERDAS IMAGINE, IMAGINE Essentials, IMAGINE Advantage, IMAGINE Professional, IMAGINE
VirtualGIS, GeoMedia, ImageStation, Video Analyst, Stereo Analyst, TopoMouse, Hexagon Smart M.App, and Power Portfolio are
trademarks of Intergraph Corporation. Hexagon and the Hexagon logo are registered trademarks of Hexagon AB or its subsidiaries. Other
brands and product names are trademarks of their respective owners.
Acknowledgments
The data used in this tutorial was made available through the courtesy of United States Geological Survey (http://www.usgs.gov ).
iii
iv
Table of Contents
v
vi
This Tutorial
Tutorial Objective
New construction or new collection/coverage areas that are extensions to an existing database
can present data integration challenges. Edge Matching is the process of performing integration
between features in data sets that share a common geographic boundary. This tutorial provides
an introduction to the GeoMedia Edge Matching tools.
Tutorial Prerequisites
There are no prerequisites for making use of this tutorial; however, having a basic understanding
of the GeoMedia Desktop will be helpful in expediting the execution of certain steps within this
tutorial.
vii
viii
Section 1: Edge Matching
Section Objective
This section will introduce you to GeoMedia Edge Matching tools. You will learn:
Tools Used
GeoMedia Professional Edge Matching Tools.
2 Edge Matching
Exercise 1: Creating Edge Match Rules
Objective: Edge Match adjacent contour lines that share a common elevation.
The above example shows a feature broken into two distinct features (Line A and Line B). In
reality, these represent a single connected feature that was broken into two discontinuous
geometries. The purpose of the Line Edge Match process is to detect and resolve these
situations.
3
Challenge 1: Line Edge Match Detection
The algorithm to detect Line Edge Matches is composed of three separate geometric
measurement tests (XY Separation, Z Offset, and Orientation) and an Attribute Comparison test.
The XY Separation is mandatory while the others are optional.
If the distance from an endpoint of Line A to an endpoint of Line B is less than a specified
amount the Features are considered for edge matching.
Z Offset refers to the difference in the Z coordinate of the two matching endpoints (C1
and C2 in the example above). The Z Offset is given by:
Z Offset = |Z1 – Z2|
Where Z1 is the z coordinate value of point C1 and Z2 is the z coordinate value of point
C2. If the Z Offset is less than some specified value, then two edges are considered for
matching. This condition is optional and by default is not considered unless specified by
the user.
Orientation refers to the relative angle between the ending segments of Line A and Line
B. In the example, below this is the angle defined by the vectors B,C1 and C2,D.
In general only the ending segments of the two features are used to determine the angle
of orientation. However, if the line contains a lot of detail within a relatively short distance
from the endpoint of a line, the ending segment may not give an accurate portrayal of the
orientation of end of the line. In this case, a least squares fit of the ending portions of the
lines can be used to give a more accurate measurement of the orientation.
4 Edge Matching
In the above example, the endpoints of Line A and Line B are within the specified XY
Separation. The angle of orientation if calculated by using the segments at the end of
each feature is approximately 90 degrees. However, in general, these lines are oriented
horizontally. If considering points within a buffer from each endpoint, the fitted lines are
close to being parallel (angle approaching 0). By considering the fitted lines, the features
may meet the angle of orientation. The XY Separation parameter value serves as the
buffer distance for the orientation calculation.
The Orientation is defined in degrees with a valid range between 0 and 90 degrees. If
this angle is less than some specified value, then two lines are considered for matching;
otherwise, they are not. Like Z Offset Orientation is an optional condition.
The matching attribute check for these two feature classes may be as follows:
Match Railroads in Warehouse A to Railroads in Warehouse B when:
(RR Type = RR Type) and…
(Gauge = Track Width)
Note that comparing RR Type to RR Type and Gauge to Track Width to determine
equality consists of comparing their attribute values since these attribute have the same
type and identical meaning. (e.g., RR Type in Warehouse A and B are both text
attributes with the same allowed values - Electric, Non-Electric, and Atomic).
5
Line Edge Match Adjustment
Line Edge Match Adjustment refers to the process of altering the geometry of the two lines to
resolve the edge match condition. Resolution of the edge match condition consists of altering the
linear geometries so that they are no longer discontinuous.
The resolution process consists of first determining the location of a point to serve as the
common point between the two geometries and then adjusting the ending portions of each line to
meet at this common point. There are two different methods for determining the common point
(Merge Point) between the two geometries.
In the above example, the Merge Point is a point on the segment formed by the endpoints of the
two lines (C1,C2). In general, the Merge Point is the midpoint of this segment. However, if
desired, more weight can be given to Line A or Line B so that that features adjustment is less.
Given W1 and W2 as the weights for P1 and P2 respectively, the X coordinate of the Merge Point
is given by the equation:
Xm = ((W1 x X1) + (W2 x X2)) / (W1 + W2)
Similarly, the Y and Z coordinates of the Merge Point can be calculated.
6 Edge Matching
In this method, the merge point is determined by calculating the point of intersection between the
line connecting the endpoints of the two edge match features and the edge match line. See the
example above. For cases where there is no point of intersection between these two lines, or if
the lines intersect multiple times, the algorithm fails and no merge point is produced.
After calculating the Merge Point, each line is adjusted so as to maintain its relative shape while
adjusting their endpoints to meet at the Merge Point. A distance is supplied, specifying how far
along the line the adjustment should occur. Only points within the adjustment distance are
moved. No points are added.
In the above diagram, the adjustment of Line A is shown. P5’ represents the Merge Point. Each
point within the Adjustment Distance is moved a relative distance in the same direction the
endpoint P5 is moved to the Merge Point P5’. The distance each point is moved is proportional to
the distance traversed to that point from the end of the Adjustment Distance. For example, P4 is
moved the following distance:
P4P4’ = (P1P2 + P2P3 + P3P4) / (P1P2 + P2P3 + P3P4 + P4P5) X P5P5’
Similarly, the distance the other points within the Adjustment Distance are moved can be
calculated. Given this distance and the vector P5P5’ the location of each corresponding vertex
on the adjusted geometry can be calculated. Line B is also adjusted in a similar fashion.
7
1. Open the GeoWorkspace:
C:\Fusion\Lessons\Lesson 4 Edge Matching\Edge Match.gws
3. The following informational message will be displayed informing the user that
edge match rules tables need to be created:
8 Edge Matching
4. Click Yes to automatically create the edge match rules tables.
7. Select Contour from the both of the Features in connection 1 : Name and
Features in connection 2: Name fields in the Match feature classes:
frame.
9
8. Click the icon to add the Features in connection 1: and Features in
connection 2: Contour feature class to the Feature class matches: frame
list.
10. The Add/Modify Edge Match Rules dialog will now appear.
10 Edge Matching
12. Name the Rules: frame Rule Name entry Contours.
13. Click the Contours Rule name and select the activated Attribute
Comparison tab.
16. Click the OK button on the Add Attribute Comparison dialog to accept the
input.
11
17. Close the Attribute Comparisons dialog.
18. Click the OK button on the Add/Modify Edge Match Rules dialog.
19. Click the OK button on the Add/Modify Edge Match Class Matches dialog.
21. Click the Yes button to save the parameters when the following message
appears.
12 Edge Matching
Exercise 2: Automated Edge Matching
Objective:
Provide an introduction to performing automated edge matching.
3. Make sure the Connection 1:, Connection 2:, and Rules connection:
entries are set as follows:
5. Double Click the Contour > Contour entry to activate the Edge Match Rules
> Contour > Contours entry. Make sure the Edge Match Rules > Contour
> Contours entries are all checked.
13
6. Check the Auto fix all rules box.
10. The Edge Match queue of EdgeMatchQuery will become activated and the
Queued Edit Map Window will be displayed.
14 Edge Matching
11. Add the Contour feature class to the Queued Edit Map Window and observe
how the edges are matched.
15
12. Scroll through the EdgeMatchQuery queue and review the Contour edges
that have been edge matched.
16 Edge Matching
Exercise 3: Interactive Edge Matching
Objective:
Provide an introduction to performing Interactive Edge Matching.
3. Select Extent > Fit > Fit Select Set to fit the InteractiveEdgeMatchLocate
Query in the Map Window.
4. Remove the Road and Contour feature classes if needed so the Hydroline
features can be more easily reviewed.
17
5. Select Toolbox > Edge Match> Interactive.
6. Zoom in to one of the unmatched HydroLine unmatched pairs that have been
identified by the InteractiveEdgeMatchLocate query.
18 Edge Matching
8. The prompt of Identify the first feature to edge match will appear in the
bottom left corner of the Workspace.
19
9. Move the cursor over one of the unmatched edges.
10. Click on the edge to accept the input and notice that the Identify the second
feature to edge match prompt appears in the bottom left of the Workspace.
20 Edge Matching
12. The message of Click to accept feature adjustments will appear in the
bottom left of the Workspace.
21
14. Pan across to the other HydroLine unmatched features in the Map Window
and interactively match more unresolved HydroLine feature edges.
22 Edge Matching