The layers are likely in the zoomify format so you may want to research how to use zoomify layers in OpenLayers.<br clear="all">--<br>Nathan Gerber<br>
<br><br><div class="gmail_quote">On Tue, Nov 16, 2010 at 6:32 PM, <span dir="ltr"><<a href="mailto:maw269@gmail.com">maw269@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
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><div><div></div><div class="h5">
<br>
<br>
<br>On Nov 15, 2010 7:48pm, Nathan Gerber <<a href="mailto:ngerber999@gmail.com" target="_blank">ngerber999@gmail.com</a>> 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>>                                         "<a href="http://onearth.jpl.nasa.gov/wms.cgi" target="_blank">http://onearth.jpl.nasa.gov/wms.cgi</a>?",
<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, <a href="mailto:maw269@gmail.com" target="_blank">maw269@gmail.com</a>> 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 <a href="http://onearth.jpl.nasa.gov/tiled.html" target="_blank">http://onearth.jpl.nasa.gov/tiled.html</a>?
<br>>
<br>>
<br>> I can hit their wms from my browser:
<br>>
<br>>
<br>> <a href="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" target="_blank">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</a>
<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 <a href="http://www.worldwinddata.com/" target="_blank">http://www.worldwinddata.com/</a>
<br>>
<br>>
<br>> How do I use OpenLayers.Layer.WorldWind to show that layer? I looked at <a href="http://openlayers.org/dev/examples/worldwind.html" target="_blank">http://openlayers.org/dev/examples/worldwind.html</a> 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>> <a href="mailto:Dev@lists.osgeo.org" target="_blank">Dev@lists.osgeo.org</a>
<br>>
<br>>
<br>> <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-dev</a>
<br>>
<br>>
<br>>
<br>>
<br>>
<br>>
<br>>
<br>>
<br>></div></div></blockquote></div><br>