Skip to main content
Solved

FME basename and rasterdemgenerator

  • July 21, 2025
  • 11 replies
  • 93 views

koenvdw
Contributor
Forum|alt.badge.img+6

I’m using the rasterdemgenerator and I can’t get the fme_basename passed it. 

 

 

I have some lidar tiles and I want to make a DTM from them. I can do everything, but I cant get the DTM named like the input las file. It has either no name or it has the name of the transformer. 

 

There is an old forum post where Takashi tell’s someone to expose the FME_feauture_type, fill it with the FME_basename, use a group by (using the FME_feauture_type) in the rasterdemgenerator and than use it as the raster file name.  

It doesn’t work for me…

 

Any other suggestions? I’m on FME 2025.0

 

 

 

Best answer by geomancer

So I expose the FME feature type, fill it with the fme basename

To me this still sounds like a very strange thing to do.

What happens when you create a new attribute, and give it the value of fme_basename? Use that same attribute for GroupBy in the RasterDEMGenerator.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

11 replies

geomancer
Evangelist
Forum|alt.badge.img+59
  • Evangelist
  • July 21, 2025

fme_feature_type is already an attribute, you can't create an attribute with the same name.

What happens when you remove the AtributeCreator?

 


koenvdw
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • July 21, 2025

It doesn’t work when I remove it. I also tried the attribute manager where I change the value of the already existing attribute FME_feature_type. It also doesn’t work. 


geomancer
Evangelist
Forum|alt.badge.img+59
  • Evangelist
  • July 21, 2025

You say it doesn't work for you. Do you get an error message? What does this message say?

 


koenvdw
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • July 21, 2025

the file name is .tif (so no name) or it’s rasterdemgenerator.tif… 

Where it should be something like 195000_174000.tif


geomancer
Evangelist
Forum|alt.badge.img+59
  • Evangelist
  • July 21, 2025

The RasterDEMGenerator creates an attribute fme_basename with value 'RasterDEMGenerator’ (as is explained at the end of the old forum post you found.

I think the relevant tip is:

A possible workaround is to expose "fme_feature_type" in the LAS reader, and set it to the Group By parameter in the RasterDEMGenerator. 

 


koenvdw
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • July 21, 2025

so exactly what I wrote in my first post and isn’t working for me…


geomancer
Evangelist
Forum|alt.badge.img+59
  • Evangelist
  • July 21, 2025

Well no, you wrote about exposing the FME_feauture_type, filling it with the FME_basename, and using the result of that to group by. That is not the same.


koenvdw
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • July 21, 2025

 

yes because after the lastools transformer I loose my fme_basename. If I inspect it, it says fme_basename: missing

 

So I expose the FME feature type, fill it with the fme basename before the lastools transformer and try to carry it through that way

 

When I try this: 

 

It works, but it’s not a DTM anymore as he also uses the unfiltered point cloud. I tried the geometryremover, but that doesn’t work. I get errors that way.


geomancer
Evangelist
Forum|alt.badge.img+59
  • Evangelist
  • Best Answer
  • July 21, 2025

So I expose the FME feature type, fill it with the fme basename

To me this still sounds like a very strange thing to do.

What happens when you create a new attribute, and give it the value of fme_basename? Use that same attribute for GroupBy in the RasterDEMGenerator.


koenvdw
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • July 21, 2025

Ok, that works. I swear it was the first thing I tried… Very strange, maybe the cache clearing helped… 

On we go, now I have to try to run it with the workspacerunner. My first time so that will be interesting.

Many thx for the support!


geomancer
Evangelist
Forum|alt.badge.img+59
  • Evangelist
  • July 21, 2025

Glad we found a solution. Good luck with your project!