Skip to main content
Question

chose between two raster


Hi,

New user here,

I try to make an atlas in a geospatial pdf.

I have multiple vector map with a main shapefile with multiple polygone (it's the foundation of my atlas)

But I want to chose between 2 raster image (ecw) as base layer for each map,

I want to chose the good raster based on the size of the main feature of my atlas.

I created a BoundingBoxAccumulator where I can have the area of the futur map to display.

How can I switch between the two raster based on the value of the area ?

if area >XXXX then put raster 1 as base layer

else put raster two as base layer.

Thanks in adavnce for your help.

3 replies

takashi
Evangelist
  • February 4, 2019

Not clear what the question point is. If you are looking for a way to calculate area of the bounding box, the AreaCalculator or the @Area function would help you.


  • Author
  • February 4, 2019
takashi wrote:

Not clear what the question point is. If you are looking for a way to calculate area of the bounding box, the AreaCalculator or the @Area function would help you.

sorry for not being clear. (English not my mother tongue)

My issue : I have 2 ecw file and a parameter (the area of the bounding box)

What is the procedure to choose the good file based on this third parameter ? it's a conditional choice.

The answer may be very simple, I'm a complete beginner...

thanks anyway for your time.

 


daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • February 4, 2019

Hi @b.dorbani,

You can use an AttributeRangeMapper to map the area of the bounding box to the basename of the desired raster, which is added to a new attribute. Then use a FeatureMerger to merge the geometry from the raster onto the bounding box, by joining the new attribute on the bounding box to fme_basename on the raster.


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