Skip to main content
Solved

How can I find duplicate lines by their geometry even if the coordinates are flipped on the duplicates.

  • November 16, 2021
  • 3 replies
  • 122 views

gmbutler2
Contributor
Forum|alt.badge.img+10

I have a workspace where I have lines that are clearly duplicated but the matcher does not identify them because the coordinates are flipped on one versus the other. Is there a way to identify duplicate geometries for lines regardless of whether the coordinates are flipped.

 

For example:

 

Line 1

Coordinate 0 = 1973175.975504196, 1785187.3988771015

Coordinate 1 = 1973164.445329631, 1784950.337012621

 

Line 2

Coordinate 0 = 1973164.445329631, 1784950.337012621

Coordinate 1 = 1973175.975504196, 1785187.3988771015

 

Both lines are identical, however the direction of one is different from the other.

 

So how can I eliminate one of these based solely on geometry.

Best answer by nielsgerrits

You need to set Lenient Geometry Matching to Yes. See the documentation:

"If Yes, then the order of points in line and area features will be ignored.

Note that areas may have differing start/end vertex locations and still match if all coordinates fall within the Vector Tolerance distance (in ground units). For lines to match, however, including closed lines, they must have matching start and matching end vertices, within tolerance.

Composition differences between paths, lines, and other curves will be ignored. The order of elements in collections, and the order of holes in Donuts will be ignored.

When comparing raster geometries, only the extents are compared."

View original
Did this help you find an answer to your question?

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+54
  • Best Answer
  • November 16, 2021

You need to set Lenient Geometry Matching to Yes. See the documentation:

"If Yes, then the order of points in line and area features will be ignored.

Note that areas may have differing start/end vertex locations and still match if all coordinates fall within the Vector Tolerance distance (in ground units). For lines to match, however, including closed lines, they must have matching start and matching end vertices, within tolerance.

Composition differences between paths, lines, and other curves will be ignored. The order of elements in collections, and the order of holes in Donuts will be ignored.

When comparing raster geometries, only the extents are compared."


michaelbreen
Contributor
Forum|alt.badge.img+2
  • Contributor
  • November 17, 2021

Would making a "duplicate" of the data help in this instance?

You could split your flow (maybe add an identifier like "duplicate" so you can remove it later) use a rotator to flip the duplicated lines and then try the matcher grouped by your unique ID.

After that you can filter out the "duplicate" lines and continue with the flow.


gmbutler2
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • November 17, 2021
nielsgerrits wrote:

You need to set Lenient Geometry Matching to Yes. See the documentation:

"If Yes, then the order of points in line and area features will be ignored.

Note that areas may have differing start/end vertex locations and still match if all coordinates fall within the Vector Tolerance distance (in ground units). For lines to match, however, including closed lines, they must have matching start and matching end vertices, within tolerance.

Composition differences between paths, lines, and other curves will be ignored. The order of elements in collections, and the order of holes in Donuts will be ignored.

When comparing raster geometries, only the extents are compared."

Thank you so much that did the trick. I had to do some play with some other stuff but a series of matchers and criteria fixed my issue and did exactly what I need to do. I totally did not see that arrow by the geometry check box and was missing those parameters.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings