Skip to main content
Solved

Removing unnecessary vertices from POLYGONS


brucearmstrong
Forum|alt.badge.img

I have a complex geometry which contains one vertex that I want to remove.

The 'offending' vertex is in the first element, the PolylineGeometry(35):

The vertext I want to remove:

I tried using something like @takashi suggested in my previous post, but obviously the arcs were lost.

I would like to ONLY remove that one point (and similarly in other complex polygons) and have the rest of the geometry unchanged. I'm an FME neophyte, so is there a way to do that?

Thanks for any help!

Best answer by owen

Hello. You can do this with the VertexRemover, specifying the index value which you can find in the inspector. You will probably have to deaggregate the feature to find the part in question first. Or if the issue is a geometry error, you could try the GeometryValidator or SpikeRemover as an alternative.

Owen

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

9 replies

owen
Forum|alt.badge.img+1
  • Best Answer
  • August 3, 2018

Hello. You can do this with the VertexRemover, specifying the index value which you can find in the inspector. You will probably have to deaggregate the feature to find the part in question first. Or if the issue is a geometry error, you could try the GeometryValidator or SpikeRemover as an alternative.

Owen


brucearmstrong
Forum|alt.badge.img

@owen, I don't see VertexRemover in 2017.1


ebygomm
Influencer
Forum|alt.badge.img+33
  • Influencer
  • August 3, 2018
brucearmstrong wrote:

@owen, I don't see VertexRemover in 2017.1

 

It was renamed in 2018, you should have CoordinateRemover to do the same thing

brucearmstrong
Forum|alt.badge.img

Ah, thanks!


brucearmstrong
Forum|alt.badge.img
brucearmstrong wrote:

@owen, I don't see VertexRemover in 2017.1

Is there a way to automate this vertex removal? I tried deaggregating the geometry and seeing how I could pass a vertex ID in, but I'm not having much luck. The deaggregator doesn't seem to do anything, no matter what settings I use. Thanks!

 

 


xiaomengatsafe
Safer
Forum|alt.badge.img+3
brucearmstrong wrote:
Is there a way to automate this vertex removal? I tried deaggregating the geometry and seeing how I could pass a vertex ID in, but I'm not having much luck. The deaggregator doesn't seem to do anything, no matter what settings I use. Thanks!

 

 

Hi @brucearmstrong, It is unusual that the Deaggregator doesn't do anything, when the input is a composite geometry. I think it might help the community better understand what is happening, if you could share this geometry in question. You can do so, by selecting this feature in Data Inspector, and use File>Save Selected Date As... to create a .ffs file with just this one feature.

 

 


brucearmstrong
Forum|alt.badge.img
xiaomengatsafe wrote:
Hi @brucearmstrong, It is unusual that the Deaggregator doesn't do anything, when the input is a composite geometry. I think it might help the community better understand what is happening, if you could share this geometry in question. You can do so, by selecting this feature in Data Inspector, and use File>Save Selected Date As... to create a .ffs file with just this one feature.

 

 

Here's the zipped FFS file.

 

 

my-geom.zip

 

 


ebygomm
Influencer
Forum|alt.badge.img+33
  • Influencer
  • August 15, 2018

Your geometry is not multi-part so the deaggregator won't do anything. I think you'll need to split the polygon down into arcs and polylines using a GeometryPartExtractor, remove the coordinate from the polyline, rebuild the geometry with a pathbuilder and coerce it back to an area.

remove-coordinate-pair.fmwt


brucearmstrong
Forum|alt.badge.img
ebygomm wrote:

Your geometry is not multi-part so the deaggregator won't do anything. I think you'll need to split the polygon down into arcs and polylines using a GeometryPartExtractor, remove the coordinate from the polyline, rebuild the geometry with a pathbuilder and coerce it back to an area.

remove-coordinate-pair.fmwt

Alrighty then. I'll see if I can figure that out :D Thanks!

 

 


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