Skip to main content
Solved

How to specify the feature type in the FeatureReader

  • January 24, 2014
  • 6 replies
  • 24 views

Hi

 

 

I have a huge set of Las files and I just want to pick out one or more of the files and cut out a pre-defined area. The area will be defined by the user, a published parameter. I do area on area overlay, the customer defined area over a square grid to catch one or more id numbers. Know I drop the geometry and just use the attribute in this part of the workbench. Couse I figured it would take longer time to do a spatial intersection in the next part of the workbench.

 

I use the feature reader transformer and specify the feature type to read to the attribute above (Id number).  I have defined the directory and dataset is set to *.las. I’m having problems though when I run the work bench it doesn’t fetch the Las files. The attribute is defined as 70875_7620 so I tried 70875_7620.las and no deferens.  

 

THe transformer runs when I use the spatial intersection mode that’s way I figured out it  must be the attribute.

 

 

 

Any Ideas? 

 

 

Tofia

 

:)

 

 

Best answer by gio

Using a binarygrid i do following.

 

 

-With the area of interest i select the index required wich in my case is BLADNR. (in your case this yields the ID_number(s)).

 

-I do a dynamic feature reader on the binary grid (in my case i.e.

 

"H:\\My Documents\\AHN2\\ahn2_05_ruw\\geogegevens\\raster\\30f\\**\\**")

 

On this i expose fme_basename.

 

 

then a featuremerger on (in my case)

 

requestor:  fme_basename and suplier: BLADNR

 

your case would be requestor: fme_basename and suplier: ID_number.

 

 

You dont need a parameter, just a dynamic feature reader.
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.

6 replies

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • January 24, 2014
Hi,

 

 

I suspect it has to do with the fact that it is a parameter, which is not known when executing.

 

 

Itay

  • Author
  • January 24, 2014
Thank you for the fast answer!

 

The Id number for the grid is just un attribute and it´s selectable in FeatureReader transformer am not shore thought how the feature type attribute string itself should be written I could use the concatenater and write the hole address but that seems wrong.

 

My settings:

 

Dataset: "K: \\Sofia\\NNH\\Test_las\\*.las"

 

Attribute: ID_number (example 70875_7620)

 

Select all features (no spatial test applied)

 

Keep result attributes and geometry only.

 

 

Tofia

 

 


fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • January 24, 2014
In that case have you tried specifying the attribute in the "Query the feature types specified in the attribute below" ?

 

 

Itay

  • Author
  • January 24, 2014
Yes that’s where the attribute ID_number is specified

 

I figured this attribute should exchange   *   in *.las or is equivalent to FME_basename.

 

So each row calls for a file.

 

 

Tofia

 

 


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • Best Answer
  • January 27, 2014
Using a binarygrid i do following.

 

 

-With the area of interest i select the index required wich in my case is BLADNR. (in your case this yields the ID_number(s)).

 

-I do a dynamic feature reader on the binary grid (in my case i.e.

 

"H:\\My Documents\\AHN2\\ahn2_05_ruw\\geogegevens\\raster\\30f\\**\\**")

 

On this i expose fme_basename.

 

 

then a featuremerger on (in my case)

 

requestor:  fme_basename and suplier: BLADNR

 

your case would be requestor: fme_basename and suplier: ID_number.

 

 

You dont need a parameter, just a dynamic feature reader.

  • Author
  • January 28, 2014
Wonderful Gio :)

 

Now I have a working workbench!

 

Thank you!

 

 

Tofia