Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Draw an arc when two locations are known

Subject: Draw an arc when two locations are known

From: Nikhil Tej

Date: 18 Oct, 2010 06:30:11

Message: 1 of 8

Can anyone help me to draw an arc in between two locations. Latitude, longitude of the two locations and radius is known.

Thank you.

Subject: Draw an arc when two locations are known

From: Nasser M. Abbasi

Date: 18 Oct, 2010 06:49:52

Message: 2 of 8

On 10/17/2010 11:30 PM, Nikhil Tej wrote:
> Can anyone help me to draw an arc in between two locations. Latitude, longitude of the two
 > locations and radius is known.
>
> Thank you.


check

http://www.mathworks.de/matlabcentral/newsreader/view_thread/141953

--Nasser

Subject: Draw an arc when two locations are known

From: Torsten Hennig

Date: 18 Oct, 2010 06:56:59

Message: 3 of 8

> Can anyone help me to draw an arc in between two
> locations. Latitude, longitude of the two locations
> and radius is known.
>
> Thank you.

In 3-dimensional space, two points and radius are
not enough information to uniquely determine the arc ...

Best wishes
Torsten.

Subject: Draw an arc when two locations are known

From: Roger Stafford

Date: 18 Oct, 2010 23:55:06

Message: 4 of 8

"Nikhil Tej " <ng829709@ohio.edu> wrote in message <i9gphj$7cf$1@fred.mathworks.com>...
> Can anyone help me to draw an arc in between two locations. Latitude, longitude of the two locations and radius is known.
>
> Thank you.
- - - - - - - - - -
  In regard to the Feb. 20, 2007 thread Nasser refers to, the method I gave there was intended to apply to a plane surface. If your locations are sufficiently far apart that the earth's curvature becomes a factor, then those answers would become inaccurate. If the earth is assumed to be a perfect sphere, it would then be a problem in spherical geometry. (I assume the arc itself is also to lie entirely on the earth's surface.) Is that actually the problem you are posing?

  Also the method in the above thread only selects the arc that does not exceed pi radians and travels counterclockwise from a given initial point to a final point. In general there will be four arcs that pass through two given points with a given radius, whether we are on a plane surface or on a spherical surface.

Roger Stafford

Subject: Draw an arc when two locations are known

From: TideMan

Date: 19 Oct, 2010 01:34:53

Message: 5 of 8

On Oct 18, 7:30 pm, "Nikhil Tej " <ng829...@ohio.edu> wrote:
> Can anyone help me to draw an arc in between two locations. Latitude, longitude of the  two locations and radius  is known.
>
> Thank you.

The (free) m_map mapping toolbox at:
http://www.eos.ubc.ca/~rich/map.html
has a map projection called gnomonic that transforms all lines on a
map into great circle routes.

Subject: Draw an arc when two locations are known

From: Roger Stafford

Date: 19 Oct, 2010 03:29:04

Message: 6 of 8

TideMan <mulgor@gmail.com> wrote in message <c1163acf-4e04-4327-b051-f6739fbed78f@r4g2000prj.googlegroups.com>...
> The (free) m_map mapping toolbox at:
> http://www.eos.ubc.ca/~rich/map.html
> has a map projection called gnomonic that transforms all lines on a
> map into great circle routes.
- - - - - - - -
  My impression is that, since Nikhil has taken the trouble to specify that the arc "radius is known", he is unlikely to be referring to the radius of the earth which is a more or less universally known quantity, and consequently the arcs in question would then not be great circle arcs.

Roger Stafford

Subject: Draw an arc when two locations are known

From: Nikhil Tej

Date: 21 Oct, 2010 02:37:04

Message: 7 of 8

"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <i9j3a0$pht$1@fred.mathworks.com>...
> TideMan <mulgor@gmail.com> wrote in message <c1163acf-4e04-4327-b051-f6739fbed78f@r4g2000prj.googlegroups.com>...
> > The (free) m_map mapping toolbox at:
> > http://www.eos.ubc.ca/~rich/map.html
> > has a map projection called gnomonic that transforms all lines on a
> > map into great circle routes.
> - - - - - - - -
> My impression is that, since Nikhil has taken the trouble to specify that the arc "radius is known", he is unlikely to be referring to the radius of the earth which is a more or less universally known quantity, and consequently the arcs in question would then not be great circle arcs.
>
> Roger Stafford

Thank you so much Roger Stafford. I could complete the given task with your approach. Your assumption is right. I wanted to calcluate an arc between two locations which are near by and I wanted to consider 2 dimension. Your assumption was right and the formulae worked pretty good for me.
I have used 2 dimensional points and I have calculated latitude and longitude by using a different formulae with all the 2D points on the arc.
Thank you again.

Regards,
Nikhil

Subject: Draw an arc when two locations are known

From: Nikhil Tej

Date: 21 Oct, 2010 02:38:03

Message: 8 of 8

"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <i9j3a0$pht$1@fred.mathworks.com>...
> TideMan <mulgor@gmail.com> wrote in message <c1163acf-4e04-4327-b051-f6739fbed78f@r4g2000prj.googlegroups.com>...
> > The (free) m_map mapping toolbox at:
> > http://www.eos.ubc.ca/~rich/map.html
> > has a map projection called gnomonic that transforms all lines on a
> > map into great circle routes.
> - - - - - - - -
> My impression is that, since Nikhil has taken the trouble to specify that the arc "radius is known", he is unlikely to be referring to the radius of the earth which is a more or less universally known quantity, and consequently the arcs in question would then not be great circle arcs.
>
> Roger Stafford

Thank you so much Roger Stafford. I could complete the given task with your approach. Your assumption is right. I wanted to calcluate an arc between two locations which are near by and I wanted to consider 2 dimension. Your assumption was right and the formulae worked pretty good for me.
I have used 2 dimensional points and I have calculated latitude and longitude by using a different formulae with all the 2D points on the arc.
Thank you again.

Regards,
Nikhil

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us