On Sun, 2011-10-30 at 17:30 +0000, Martin Spott wrote: > BARANGER Emmanuel wrote: > > > With osgearth we could even create a specific server complete with cards > > containing information navigation (NAV, VOR, ILS etc. ..) > > osgEarth is not the first choice of a tool for this sort of work. In > order to feed tools like Atlas or moving maps in general from a network > server, you'd want to look at protocols like WMS and the servers which > already have been developed for this purpose. > > As an offer in order to get the ball rolling: If anyone bothers to > implement the WMS client side into Atlas (either EPSG:4326 or, maybe > preferred, EPSG:900913, tile size 256x256), then I'll promise to serve > the tiles. We'd start with the known Atlas map style and once the > system works, we're open for any other WMS service on the world. > The app doesn't necessarily have to be based on Atlas, I just chose > that once because it's well known in FlightGear-world. > > If anyone's interested, start reading here: > > http://wiki.osgeo.org/wiki/WMS_Tiling_Client_Recommendation > > Cheers, > Martin.
Hi Martin, Wow, just what the doctor ordered ;=)) As you may know the Atlas project already has a GetMap application, linked with CURL to to do the http requests... written by Fred back in 2004, I think... GetMap was to provide an alternative method of generating tiles for use with Atlas... and which can also be used for ZKV1000 maps... The ONLY 'sample' WMS server written into it was wms.jpl.nasa.gov, which, as you may know, no longer offers full public WMS services... About a week or so ago I searched around hard to find some other available public WMS servers, but after trying quite a number, found none ;=(( So yes, I have read the reference you pointed to, and lots of other WMS stuff, and would be prepared to modify GetMap to use your server, but maybe it does not even need modification... The user supplies a base_url, size, min_lat, min_lon, max_lat, max_lon, and an output directory, and the request is presently presented in the form - // the default size is 256 if none given... // some range checking to make sure it is in the world // then for (y = min_lat; y < max_lat; y += 1) { for (x = min_lon; x < max_lon; x += 1) { rx = x; if (rx >= 180) rx -= 360; outfile << out_dir << "/[w|e]???[s|n]??.jpg"; surl << base_url << "REQUEST=GetMap&VERSION=1.1.1" << "&WIDTH=" << size << "&HEIGHT=" << size << "&BOX=" << rx << "," << y << "," << rx+1 << "," << y+1 << "&FORMAT=image/jpeg&SRS=EPSG:4326" // and curl is used to fetch and write this tile... } } It could be easily modified to use "EPSG:900913" if that is preferred... It does seem a default size of 256x256 is perhaps a little small for 1x1 degrees, but anyway other methods could be used to combine images into say 1024x1024... And as indicated, I hope later airport and navaid overlays could be added via say &LAYERS=... or something, to the relief and/or landuse image... and maybe format alternatives like png or gif... lot of possibilities... What is the GetCapabilities URL? Or is it not set up yet? Regards, Geoff. ------------------------------------------------------------------------------ Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World™ now supports Android™ Apps for the BlackBerry® PlayBook™. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel