Re: Rhumb Lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2006-05-05 at 19:16 +0200, Paul Scott wrote:

> I could do something like this using PostGIS and PHP, but a pure PHP
> solution is probably going to be a tad slow with real geometries.
> 

Sorry about replying to my own post, but here is a postgis solution
supplied off the PostGIS list (thanks David):

Reproject the start and end point to a mercator (not a transverse
mercator) projection, connect the points, fill in the gap with
additional points (the segmentize() function would do this) and then
reproject to the original projection.

The following should work where a and b are the two points in your
original projection. To make a rhumb between with a distance of 100m:

select transform(segmentize(transform(makeline(a,b),9804)),100),4326)

--Paul

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux