Skip to main content
Hi,

 

 

I need to generate a grid with dimension keepped from attribute value... but fme log error say that grid_cell_count must be positive integers ...

 

 

is there a way to forcing an attribute's type to integer ?

 

 

thx a lot 

 

 

gd day
Hi

 

 

Try inserting an AttributeRounder with zero decimal places.

 

 

David
I TRY IT WITH NO RESULT 😕
I found it (attribute value was not the good one )... now i have another problem, transformer 2gridaccumulator can't read number of horizontal and vertical tiles... when i set it manually, there is no problem, but if i prcise that it should be refered to attribute value, he create only one point :/

 


Select those two attributes in group by and use
Hi Pratap,

 

 

Thx for ur answer,

 

 

i tried it and same result (he create only one point) ..

 

 

 
Does that mean it is creating 1 point, instead of 5 rows & 3 columns?
yes, numbers of rows and columns are stored in another attribute (coupe_v and coupe_h),

 

 

The transformer can't read those values and create only one point ..:/
"The transformer can't read those values"...

 

 

Have you checked by adding these attributes "coupe_v and coupe_h" in Group By option? I have seen in the screenshot only "fid" is selected.
Yes i tried it believe me ... 😞
Sorry I didn't mean in this way...

 

 

It is strange, why it is working when values are constants and not when values are variables... I dont have latest version to check... 

 

 

Anyhow please check the values whether "coupe_v and coupe_h" attributes are passing after this 2gridaccumulator transformer or not.
It might be a kind of bug of the 2DGridAccumulator.

 

In the interim, try setting "Yes" to the "Input is Ordered by Group" parameter.

 

-----

 

Group By: coupe_h  coupe_v  fid

 

Input is Ordered by Group: Yes

 

-----

 

FME 2015.1.1.0 build 15515
I had a problem like this with the tiler. (GeometryExtractor-BoundingboxReplacer[attributes for long and short side]-Tiler[tile width = @Value(long)/2 etc.]). After a while I realized the error "GRID_CELL_SIZE must be positive numbers" was caused by disabeling the connection to the Tiler instead of disabeling the transformer. This might be your problem as well...
Hi, 

 

 

Thanks a lot for ur answer ! Thank You very much Takashi it work when i set yes to input in order by group :)

 

 

Thank You Pratap for your help, also  NielsGerrits thank u too :)

 

 

Good day

Reply