This project is read-only.

using wms server

Oct 5, 2008 at 4:45 PM

I am tring to get Deep Earth work with wms server,
The problem is the convertion between virtual earth (quadkey) to wms,
Someone know a way to do it? have a code, idea, something?

I found a code that do it, but it's not working as it should,
It's reproduce invalid y,x values
Oct 5, 2008 at 5:36 PM
I Just found this one
still tring to get it work...
Oct 5, 2008 at 11:17 PM
Do you have the latest code? See the OpenStreetMap example?
You need to create a WMS example, make a new folder in the exmaple folder, add a silverlight application with its web project.
You need to make a new silverlight class DeepEarth.WMS, use the code from OSM and modify to suit, so long as your the same projection it should only be the tilepath that differs.
For WMS I wonder if we should have a way for the control to be smart enough to request the capabilities and do all the configuration automatically - so you just supply the URL and it does the rest?
Is there a WMS server that wouldn't mind as prototyping against it directly? Let me know the URL and I can do the ground work pretty quickly to get you started.
Oct 6, 2008 at 12:21 AM
Creating a Virtual Earth plugin for NASA's WorldWind

there is a source download there, not sure if you seen this already, but maybe it could help you make your WorldWind Provider/Example

If you look at this link,
it looks like the WMS uses the same kind of tile system as VE...?

Oct 6, 2008 at 10:14 AM
I am still trying to get it work...
I am using the same url all the time, the only thing I am chaning is the BBOX (it's like the quadkey of VE), and the LAYERS
I am using most of the code from the msdn
but I am getting errors like:
An error occurred: can't find resolution index for 0.700379. Available resolutions are: ....

 I am using this server (for the example)

Tile Example:,0,0,90&WIDTH=256&HEIGHT=256
Oct 6, 2008 at 3:42 PM
Edited Oct 6, 2008 at 3:43 PM

download that prohect it is a "TileServer" it has a sample website and in the "TileServer.Core.TileEngine" class you will find a bunch of methods that look like that are for converting the quadkey to box for the WMS server...

this might help you out...?
Oct 6, 2008 at 11:30 PM
I hadn't seen this before, the project page with the latest source code is here:

So what this does is put a layer between VE and your WMS server to provide caching and performance. I imagine your WMS server would get hammered very quickly if it had to keep rendering these 256px tiles.
Very interesting and open source.

That said there is no reason why you can tie into a WMS server directly, it just sounds like it is not the best way to do it.
Oct 7, 2008 at 6:39 PM
I can vouch for Dave's code. I have used it was a quick way to get WMS into VE systems and it works great.

But as SoulSolution said you *must* implement some kind of local or remote caching strategy or you will bring most WMS's to their knees. I have used MapServer and GeoServer as back ends with great success, make sure you use overviews and tiling of your source images, especially if you are using GeoTIFF's as your source.
Oct 7, 2008 at 10:24 PM
Unfortunately I will be back to work only in 2 week to check this out
In the meantime thank you all guys