Skip to main content

Hi FMEers.

I have an interesting task and thought I’d come directly to the experts for advice! I want to pick a random position on Earth, but it has to be on land. How would you go about it?

The obvious route is to simply pick a random coordinate, repeating the process if it doesn't fall within a land boundary. That seems inelegant. 

Alternatively, maybe I could use H3 hexes? Generate all level 15 hexes over land and pick one at random. That seems slow.

I'm open to any suggestions. I want lat/long coordinates to about 7 decimal places, and I need it to run (on Flow) in around 1 or 2 seconds.

Thanks for any suggestions.

Mark

1- Add a spatial area reader with the all the countries.

2- Use RandomPointGenerator transformer.

3- Use CoordinateExtractor.

 


Sounds like a job for the OpenAIConnector😁