Skip to main content
Solved

Offset points on map


Forum|alt.badge.img

I sShould preface this post with this subject-matter is foreign to me. Seeking solution – with detailed instructions – to offset points on a map. The end application requires lat/long, which I have. I need to take these lat/longs and offset the map points (preferably, in random directions) by 350’.

Thanks in advance!

Best answer by hollyatsafe

Hi @keb9113,

You can do this by using the Offsetter transformer using the 'Spherical Coordinate' Mode. There are 3 parameters that require setting here:

Distance - This will follow the coordinate system your points are in, so if it is not in feet then you can either reproject the points or convert 350' to meters.

Azimuth - this is the direction you want the points to be offset in degrees. Since we want the points to be offset in random directions we can use a RandomNumberGenerator to assign each point a random value between 0 and 360 degrees and then in the Offsetter set this new attribute to the Azimuth.

Altitude - Angle in degrees from the XY plane. If you want your points to remain on the ground you can leave this set to 0.

The Workspace should be set up like this:

And you can see in the result in the Data Inspector, here the green points are the start position and the red are the end:

View original
Did this help you find an answer to your question?

6 replies

Forum|alt.badge.img+2
  • Best Answer
  • August 21, 2018

Hi @keb9113,

You can do this by using the Offsetter transformer using the 'Spherical Coordinate' Mode. There are 3 parameters that require setting here:

Distance - This will follow the coordinate system your points are in, so if it is not in feet then you can either reproject the points or convert 350' to meters.

Azimuth - this is the direction you want the points to be offset in degrees. Since we want the points to be offset in random directions we can use a RandomNumberGenerator to assign each point a random value between 0 and 360 degrees and then in the Offsetter set this new attribute to the Azimuth.

Altitude - Angle in degrees from the XY plane. If you want your points to remain on the ground you can leave this set to 0.

The Workspace should be set up like this:

And you can see in the result in the Data Inspector, here the green points are the start position and the red are the end:


chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • August 21, 2018

Hi @keb9113,

Sounds like the GeoAnonymizer, available on the FME Hub, is the perfect the Transformer! The GeoAnonymizer takes input features and shifts them in a random direction up to a maximum shift distance which is specified in the parameters.

I've attached a sample workspace where points are created from a CSV file (coordinate system: LL84), using Method 1 described in the Converting from CSV to Spatial Geometry article, and randomly shifted in both distance and direction to a maximum of 350'.

I hope this helps.

- Chris

geoanonymizer.fmwt


Forum|alt.badge.img
  • Author
  • August 21, 2018
chrisatsafe wrote:

Hi @keb9113,

Sounds like the GeoAnonymizer, available on the FME Hub, is the perfect the Transformer! The GeoAnonymizer takes input features and shifts them in a random direction up to a maximum shift distance which is specified in the parameters.

I've attached a sample workspace where points are created from a CSV file (coordinate system: LL84), using Method 1 described in the Converting from CSV to Spatial Geometry article, and randomly shifted in both distance and direction to a maximum of 350'.

I hope this helps.

- Chris

geoanonymizer.fmwt

Thank you both very much!


Forum|alt.badge.img
  • Author
  • September 12, 2018

Thank you both for your input. I also need the "new" lat/long points. What am I missing to get this information into an actual field?


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • September 12, 2018
keb9113 wrote:

Thank you both for your input. I also need the "new" lat/long points. What am I missing to get this information into an actual field?

A coordinate extractor will write the coordinates into new attributes

 

 


Forum|alt.badge.img
  • Author
  • September 12, 2018
ebygomm wrote:
A coordinate extractor will write the coordinates into new attributes

 

 

 

Got it - thanks!

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