Skip to main content
Solved

2dgridaccumulator


Forum|alt.badge.img
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

Best answer by takashi

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
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

13 replies

david_r
Evangelist
  • July 27, 2015
Hi

 

 

Try inserting an AttributeRounder with zero decimal places.

 

 

David

Forum|alt.badge.img
  • Author
  • July 27, 2015
I TRY IT WITH NO RESULT :/

Forum|alt.badge.img
  • Author
  • July 27, 2015
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 :/

 


pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • July 27, 2015
Select those two attributes in group by and use

Forum|alt.badge.img
  • Author
  • July 27, 2015
Hi Pratap,

 

 

Thx for ur answer,

 

 

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

 

 

 

pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • July 27, 2015
Does that mean it is creating 1 point, instead of 5 rows & 3 columns?

Forum|alt.badge.img
  • Author
  • July 27, 2015
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 ..:/

pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • July 27, 2015
"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.

Forum|alt.badge.img
  • Author
  • July 27, 2015
Yes i tried it believe me ... :(

pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • July 27, 2015
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.

takashi
Supporter
  • Best Answer
  • July 27, 2015
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

nielsgerrits
VIP
Forum|alt.badge.img+54
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...

Forum|alt.badge.img
  • Author
  • July 29, 2015
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

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