InsidePointReplacer

From fmepedia

InsidePointReplacer is a Workbench Transformer.

The InsidePointReplacer replaces an object with a point that's guaranteed to be inside (or, in the case of a line or point feature, on) the original object.



Example

The attached workspace shows an example use of the InsidePointReplacer transformer.

In this example the user requires a point inside each country of the world, in this case Croatia. Here the CenterPointReplacer fails to provide an acceptable solution because the geographic centre of Croatia does not fall within the country's boundary (in fact it falls inside Bosnia + Herzegovina). The InsidePointReplacer provides a good solution because it is guaranteed to return a point inside a polygon's boundary.


Workspace Screenshot


Output Screenshot

The red point is the InsidePointReplacer feature - the blue point is the CentrePointReplacer feature...

Attached Files
filesizedate
InsidePointReplacer Example Output.jpg43.0 kB11/11/08
InsidePointReplacer Example.jpg86.9 kB11/11/08
InsidePointReplacer Example.zip784.8 kB11/11/08
User Comments Add a new comment