[OSM-talk] How can i convert(GSHHS) coastline with GMT

Oliver White streetmap at blibbleblobble.co.uk
Thu Jun 29 19:02:04 BST 2006


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)  




On Thursday 29 June 2006 13:58, Bruno Adele wrote:
> Hello,
>
> I would like to use phprendering(
> http://wiki.openstreetmap.org/index.php/PHP_rendering  )
> But, i can't convert the coastline with GMT commands (gmtconvert,
> mapproject,project,pscoast with -M option)    il would like convert to
> latitude(-180,+180)/longitude(-90,90)  and not latitude
> (0,380)/longitude(-90,90). Here a result for UK (
> http://adele.jesuislibre.org/phprender/Data/coast.txt ) created by
> phprendering author
>
> How can i do ?
> Thanks for your responses




More information about the talk mailing list