Thank You Nathan...I now have access the the NASA WMS in openlayers!
<br />
<br />Any idea on how I would use the downloaded data pack in openlayers? Is that possible?
<br />
<br />
<br />
<br />On Nov 15, 2010 7:48pm, Nathan Gerber <ngerber999@gmail.com> wrote:
<br />> Matt,
<br />> >
<br />> For using the World Wind WMS layers you referenced this is what you would add to your map assuming that you are using the default projection for OpenLayers (EPSG:4326)
<br />> >
<br />>
<br />>                                 var nasa = new OpenLayers.Layer.WMS("NASA WMS Service",
<br />>                                         "http://onearth.jpl.nasa.gov/wms.cgi?",
<br />>
<br />>
<br />>                                                 {
<br />>                                                         layers: 'global_mosaic'
<br />>                                                         , styles: 'visual'
<br />>
<br />>
<br />>                                                 },
<br />>                                                 {
<br />>                                                         tileSize: new OpenLayers.Size(512,512)
<br />>
<br />>
<br />>                                                 }
<br />>                                 );
<br />>                                 map.addLayer(nasa);
<br />>
<br />>
<br />>
<br />> In the link you posted go to the "GetTileService" When you view the XML take note of the comments in the TilePattern tags. For example:
<br />>
<br />>
<br />>
<br />> request=GetMap&layers=daily_afternoon&srs=EPSG:4326&format=image/jpeg&styles=visual&width=512&height=512&bbox=-180,-166,76,90
<br />>
<br />>
<br />>
<br />> In the above example you would take layers=daily_afternoon and use the daily_afternoon as your layers in the OpenLayers definition. Styles is not necessary unless you are looking for a specific theme. If so look in the above example string again and you will see styles=visual, visual is what you would specify in the styles definition for OpenLayers. Be sure you use the tileSize definition that matches the width and height from the TilePattern string.
<br />>
<br />>
<br />> The WorldWind example you reference is accessing the remote WorldWind server for the tiles. It is not intended for accessing a copy of the data that you downloaded.
<br />>
<br />>
<br />> --
<br />> Nathan Gerber
<br />>
<br />> >
<br />> On Mon, Nov 15, 2010 at 4:33 PM, maw269@gmail.com> wrote:
<br />>
<br />>
<br />> I have 2 questions:
<br />>
<br />>
<br />> 1. Is it possible to show World Wind WMS Layers from OpenLayers as in http://onearth.jpl.nasa.gov/tiled.html?
<br />>
<br />>
<br />> I can hit their wms from my browser:
<br />>
<br />>
<br />> http://wms.jpl.nasa.gov/wms.cgi?request=GetMap&layers=global_mosaic&srs=EPSG:4326&format=image/jpeg&styles=visual&width=512&height=512&bbox=-180,-166,76,90
<br />>
<br />>
<br />> but can't seem to connect to it using any of the openlayers.layer.classes.
<br />>
<br />>
<br />>
<br />>
<br />>
<br />> 2. I also downloaded the NLT Landsat 7 Visible Color-Level 0 cache pack from http://www.worldwinddata.com/
<br />>
<br />>
<br />> How do I use OpenLayers.Layer.WorldWind to show that layer? I looked at http://openlayers.org/dev/examples/worldwind.html but was even more confused after looking at that page's source.
<br />>
<br />>
<br />> The cache pack uzipped to my harddrive as a folder entitled '0'; subfolders entitled '0015' through '0075'; and then images such as '0015_0046.jpg'
<br />>
<br />>
<br />> Thanks,
<br />>
<br />>
<br />> Matt
<br />> _______________________________________________
<br />>
<br />>
<br />> Dev mailing list
<br />>
<br />>
<br />> Dev@lists.osgeo.org
<br />>
<br />>
<br />> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>
<br />>