[OSM-talk] How can i convert(GSHHS) coastline with GMT
Bruno Adele
bruno.adele at jesuislibre.org
Fri Jun 30 07:53:53 BST 2006
Le jeudi 29 juin 2006 20:02, Oliver White a écrit :
> If you just want to use a coastline file that has longitudes in the 0-360
> range, then you can modify the LoadCoasts() function in PHP_rendering:
>
> list($lat, $long) = explode(",", $Line);
> //--------------------------------
> if($long > 180)
> $long -= 360;
> //--------------------------------
> if($lastValid)
Thanks four your response.
For information, i found another solution in GMT
gmtdefaults -D > ~/.gmtdefaults
et edit ~/.gmtdefaults
replace DEGREE_FORMAT = 2
now out longitude in -180 to 180 degree
old DEGREE_FORMAT = 0
out longitude in 0 to 380 degree
BA
--
Bruno Adele
Tout sur le soft 100% libre - http://www.jesuislibre.org
GPG: 1024D/6BF76699
More information about the talk
mailing list