服务器间传递地图

呵呵,今天终于搞定了。其实没有什么的。TerraServer没有提供图像名称的API,所以就不能读取。自己把从远程服务的图像,转给本地,然后给它个名称。Ajax可以调用该远程图像。。呵呵,终于把Ajax引擎用到了我的地图设计之上。
[UNKNOWN NODETYPE 7]?>?>?>?>?> $im = imagecreatefromjpeg(‘http://terraservice.net/ogcmap.ashx?
version=1.1.1&request=GetMap&Layers=UrbanArea&Styles=&SRS=EPSG:26910
&BBOX=547900,4183900,549500,4185500&width=700&height=700&format=image/jpeg’);
Header(‘Content-type: image/png’);
Imagejpeg($im, ‘baseimage.jpg’);
?>

Share with:

  • email
  • LinkedIn
  • Twitter
  • Facebook
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Digg
  • 豆瓣

Related posts: