span8
span4
span8
span4
Hi group,
I've run into a curious problem with the Tiler transformer.
I'm trying to sub-divide tiles,but when I sub-divide a previously sub-divided tile,it doesn't divide up the way it's supposed to.
My simple example divided an initial box into 3x3,and then I attempt to sub-divide each of these 9 features into 2x2.I expected 36 tiles,but I end up with 16 boxes !?!
What gives??
Cheers
Lars I.
@lifalin2016
There has been a long standing trick to do this.
Create a custom Tiler.
Make parameters out of the nr of rows and columns attributes.
Set the the custom to paralelprocessing,parallel proces by row and column.
(set paralellel proces to minimal)
Use this rather thne normal tiler.
插话,yes,the Tiler tiles up all of the data that enters it.What the real "bug" here is that the Tiler doesn't have a group-by parameter.If it had that then it would be simple enough to do what you need.
I will file an enhancement request to suggest we add that [Filed as PR#72941]
So - as you have noted - the 2DGridAccumulator is a fix here.In fact the way I solved this was a Tiler (3x3) and then a 2DGridAccumulator (2x2) using the Tiler _column and _row attributes to group by.That way you don't need to create any ID numbers.
Hi all.
I found a simpler way using the 2DGridAccumulator.
I needed the transformer to divide the individual tile separately,using the "group by" functionality.It occurred to me that a dynamically applied random value would do the trick,and so added an attribute "tile_uuid" with the value "@UUID()" to every tile being sub-divided just before running it thru 2DGridAccumulator.
This worked,and I'm now seing successive sub-divisions where applicable.
So thanks@egomm(sorry about the first confusion,itay) for the suggestion to apply the 2DGridAccumulator instead of Tiler.
Cheers
Lars I.
It's not so difficult to create a 亚搏在线workflow which can divide a rectangular polygon into N x M tiles.e.g.
You can also create a custom transformer containing this 亚搏在线workflow and Loop to iterate the dividing process,if necessary.
Thanks all.
I would expect the Tiler to work on whatever geometry is given to it,not the whole dataset.So I will still call it a bug.How else can I sub-divide some tiles but not others ?
The 2DGridAccumulator does indeed give me 36 tiles,but only when using grouping,which again assumes an "all dataset" approach,which I can't use.
Any other ideas on how to selectively sub-divide a single tile (that's an output from an already performed tiling) ?
Please don't tell me that I have to build my own custom transformer for this !?!
Cheers
Lars I.
Yep I also get the same result but when grouped by its still working,bug?
I see the same behaviour,using a 2dGridAccumulator I get 36 tiles
© 2019 亚搏在线Safe Software Inc |Legal