Line between 2 points

S.Nicolas - Webmaster webmaster at 2ID-DESIGN.COM
Wed May 4 07:39:03 EDT 2005


Thank you Paul for your suggestion.
Unfortunately "equations" are not my best friend.
If somebody is willing to help or diirect me to an example, I will extremely
appreciate. I am using PHP/Mapscript.

Stéphane 


-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Paul Spencer
Sent: 04 May 2005 11:53
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Line between 2 points

Stephane,

to create a curved line between two points, you will need to calculate
intermediate points along the curve and add them to your line segment.

If you are portraying a straight line (geographic) in a non-geographic
projection then the calculations are simply to add intermediate points along
the line and mapserver will re-project them appropriately, ending up with a
nice curve (depending on the number of points).  If you are trying to
display a curve in the same projection, you will need some equation to
calculate points along the curve.

Cheers

Paul

Stephane Nicolas wrote:
> Does naybody has an idea about creating a curved line between 2 points?
> Thnaks in advance for any help or directions given to previously 
> discussed thread.
>
> Stephane
>

--
+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.2 - Release Date: 02/05/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.11.2 - Release Date: 02/05/2005
 



More information about the mapserver-users mailing list