Skip to main content
Question

Intersector and TestFilter produces result, but no geometry

  • December 23, 2024
  • 9 replies
  • 66 views

scarter
Contributor
Forum|alt.badge.img+10

Hello Forum,

 

I have two polygon datasets, each with just one object in it. The edges of the two polygons abut in places.

 

I’ve created a workspace where I‘m reading in the ‘Above’ polygon dataset and the ‘Below’ polygon dataset. I want to create a line feature of where they share a border.

 

To do this I’ve used an Intersector which gives me a new _overlaps attribute…

 

The exact line I require is where _overlaps = 2…

 

So, I added a TestFilter to filter out where _overlaps = 2…

 

 

But when I wrote that to a new feature no geometry was created.

 

So, I added a LineBuilder, hoping that that would force the line to be drawn. But the resulting FeatureWriter is still not creating a line dataset - it creates a dataset, but with no geometry.

 

 

Any ideas?

 

 

Thanks,

Stuart

9 replies

geomancer
Evangelist
Forum|alt.badge.img+50
  • Evangelist
  • December 23, 2024

When I try a quick test with two boxes the line between the two polygons is formed correctly.

So I wonder about the two polygons you input. Are the coordinates that both polygons should share really the same?


scarter
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • December 23, 2024

@geomancer, this is the Above polygon…

 

 

This is the Below polygon…

 

If shown together you can see that they match along the shared edges…

 


birgit
Influencer
Forum|alt.badge.img+16
  • Influencer
  • December 23, 2024

Can you show us the result of your LineBuilder in the inspector with the geometry and the points it consists of in a screenshot? Like so:

 


geomancer
Evangelist
Forum|alt.badge.img+50
  • Evangelist
  • December 23, 2024

I cannot be sure both polygons match along the shared edges. There could be small gaps and overlaps, there could be missing points, there could be differences of a millimeter between coordinates, there could be plenty of reasons why the edges of both polygons don't excacty match.


scarter
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • December 23, 2024

Here you go, ​@geomancer 

 


geomancer
Evangelist
Forum|alt.badge.img+50
  • Evangelist
  • December 23, 2024

Can you show the information under Geometry in the Feature Information panel?


scarter
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • December 23, 2024

@geomancer I’m confident that the polys do match along the main edge. I know this because the Below poly was created from the Above one. To do this I first created a doughnut polygon using the Above polygon (thus created a large poly with the area covered by Above as the hole in the middle). I then snipped it at the edges to create the Below polygon.  


geomancer
Evangelist
Forum|alt.badge.img+50
  • Evangelist
  • December 23, 2024

I see. In that case, unfortunately I have no idea why your workflow does not produce a geometry, while my quick test does.

Maybe you will have better luck using a TopologyBuilder?

 


liamfez
Influencer
Forum|alt.badge.img+35
  • Influencer
  • December 23, 2024

Can you test with a GeometryFilter that the feature is a line.

And then for the writer, what is the writer format? You may want to check to ensure the geometry aligns (not trying to insert a line feature to an area featuretype that already exists).


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