Hi Tim,

If you don't want to go all out on formula gymnatics, I may have an idea for you.

By using the coordinate support in MapInfo to my advantage, I've implemented adding 
meter offsets to GPS positions this way :

1. Set the coordsys to LatLong/WGS84, and obtain the coordinates of the point (user 
click in my case)
2. Switch the coordsys to a meters based stereographic projection with the lat/long 
point as center, i.e. as (0,0)
3. Create a new point feature using simple 2D geometry, e.g. 300 meters east, 200 
meters south, i.e. in stereographic position
(300,-200)
4. Switch back to LatLong/WGS84, and retrieve the coordinate of the created point 
feature
5. Voila, you've had MapInfo calculate a flat offset to a geographic position.

It was implemented in Pro/MapBasic, which is far better at this this MapX. But even in 
MapX you can manipulate the coordinate system
setting to your advantage, and you can create point features on the fly, so it ought 
to be possible even in MapX to use the above
method.

And yes, it's an approximate method that deteriorates with distance, but for smaller 
offsets it should be perfectly ok to use.

Good luck.

Best regards/Med venlig hilsen
Lars V. Nielsen
GisPro, Denmark
http://www.gispro.dk/
----- Original Message ----- 
From: "Tim Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 29, 2004 1:42 PM
Subject: MI-L New lat/long from distance/bearing



Hi List,

I have a latitude and longitude in WGS-84.
I want to calculate a new point based on a bearing and distance from
this position.

Difficult bit -
I want to calculate this using MapX, or alternatively I could use some
C/C++ code.

Thanks for any help with this

Kind regards

Tim Smith

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12390


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 12397

Reply via email to