Skip to main content
Solved

Search envelope - FFS - Clip bug

  • November 11, 2019
  • 6 replies
  • 20 views

krisvesweco
Contributor
Forum|alt.badge.img+4

Hi!

I have some 3D faces that have been saved out to a FFS.

 

Now I'm trying to use a Search envelope on a FFS reader to load the model above, I want to clip the model according to the bound. It works but many(all) of the clipped faces have faulty values at Z=0. I would expect to get a nice clean cut on the 3D-faces, with correct z-height at all their indices. See this image:

 

 

I have attached the soure files for debugging.

Is this a known bug? Any workaround available?

Best answer by mark2atsafe

Hi all,

Just to let you know that this is reported fixed in FME 2020, build 20136 or greater. I'm expecting all to be well now, but if you give it a try and there are still problems, then please do let me know.

Regards

Mark

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

6 replies

sigtill
Supporter
Forum|alt.badge.img+24
  • Supporter
  • November 11, 2019

I think only 2D-clipping is supported via the featurereader. I think you must read "intersect" and then use this method to do the actual clipping afterwards: https://hub.safe.com/publishers/safe-sandbox/transformers/surfaceclipper


krisvesweco
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • November 11, 2019
sigtill wrote:

I think only 2D-clipping is supported via the featurereader. I think you must read "intersect" and then use this method to do the actual clipping afterwards: https://hub.safe.com/publishers/safe-sandbox/transformers/surfaceclipper

Thanks! I'm not using the FeatureReader but instead a FFS reader. It actually does clip the 3D faces which is great, if only all the indices z-values would be correct:) I assume it's a bug,


mark2atsafe
Safer
Forum|alt.badge.img+45
  • Safer
  • November 14, 2019

Did you file this with our support team? I don't know if it's a known bug, but I'm fairly certain that it's a bug.

What I'm noticing is that the zero z-values appear to be extra vertices. If they aren't truly necessary, then I think you might be able to simply remove them and the data would be OK - like this:

The CoordinateExtractor extracts a list of coordinates and the ListSearcher searches that list for zero values in the Z coordinate. The VertexRemover then removes that vertex (Coordinate Index = List Index). The LineCloser returns the feature back to a polygon.

I have the same sequence twice because some features had two zero-value coordinates, and it was easier to deal with them this way.

Anyway, I will raise this as an issue with the development team, but in the meantime I'm hopeful that the above will be a valid workaround for you.


mark2atsafe
Safer
Forum|alt.badge.img+45
  • Safer
  • November 14, 2019
mark2atsafe wrote:

Did you file this with our support team? I don't know if it's a known bug, but I'm fairly certain that it's a bug.

What I'm noticing is that the zero z-values appear to be extra vertices. If they aren't truly necessary, then I think you might be able to simply remove them and the data would be OK - like this:

The CoordinateExtractor extracts a list of coordinates and the ListSearcher searches that list for zero values in the Z coordinate. The VertexRemover then removes that vertex (Coordinate Index = List Index). The LineCloser returns the feature back to a polygon.

I have the same sequence twice because some features had two zero-value coordinates, and it was easier to deal with them this way.

Anyway, I will raise this as an issue with the development team, but in the meantime I'm hopeful that the above will be a valid workaround for you.

I confirmed the problem and filed it with the developers under the reference number: FMEENGINE-62169


krisvesweco
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • November 15, 2019
mark2atsafe wrote:

I confirmed the problem and filed it with the developers under the reference number: FMEENGINE-62169

Thanks! Looking forward to the fix.

I'm clipping using gdal now instead but it would be great to have it working in FME.


mark2atsafe
Safer
Forum|alt.badge.img+45
  • Safer
  • Best Answer
  • December 3, 2019

Hi all,

Just to let you know that this is reported fixed in FME 2020, build 20136 or greater. I'm expecting all to be well now, but if you give it a try and there are still problems, then please do let me know.

Regards

Mark


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