Skip to main content

Hi all,

 

 

I'm a bit struggeling with below issue:

 

 

I have 10 000 points and a certain polygon. I first clip the points that are outside the polygon as I don't need them any more. Then I connect the points inside with a tiler to create a grid on those points so that I can output them into 4 different databases based upon in which tile they are situated.

 

 

This works well if the points are well distributed, but if the majority of the points are located to one side of the polygon and a few are distributed alongst the other side, I have 1 database containing a lot of points while the other 3 contain like only 1 point.

 

 

How can I make a more evenly distributed output + I want near points to be outputted in the same geodatabase

 

 

I'm using FME 2015.1

 

 

Regards

 

VAT
Hi

 

 

One idea might be to use the CenterOfGravityAccumulator (https://store.safe.com/transformers/centerofgravityaccumulator) on your inside points. The center of gravity output point could be used as the intersection point of your four tiles. It won't be exact, but it should be an improvement for imbalanced datasets.

 

 

David

 

 
Hi David, thanks for the suggestion.

 

 

The only downside is that it's not possible to use the seed x & y coordinate with the option to choose the amount of tiles. it's only possible to to this with working with the ground units.

 

 

I've also taken a look at the possibilities with the pointcloud transformers, but the only issue with that is that I need to aggregate all my points and then I loose all my attributes.
Actually now that I've taken a better look at the point clouds I've came to this conclusion:

 

 

- use a point cloud combiner and preserve all attributes (it take's some time to preserve all attributes as there are a lot of attributes) (maybe some idea to import the attributes from somewhere?)

 

- use the point cloud density tiler to set the amount of points in 1 tile

 

- add a counter to have a fanout attribute later on

 

- use a point cloud coercer to get indiviual points again (and preserve all attributes again which takes some time)

 

 

VAT

Reply