OGC WMS/WFS connection in Virtual Earth
Hello all,
MSN VE is looking fantastic and getting better. Indeed a good option against google earth. But I could easily make some php scripts that could connect WMS to Google and project data on the fly to GE and this was also possible with MySql+GE connections.
But did anybody already do an experiment to connect a WMS to MSN Virtual Earth? I would be very much delighted to have some codes if possible.
Shuman Kibria
Please contact
kibria14829@itc.nl
Yes, it's fairly easy to overlay WMS in 3D mode. There will be samples available soon. In 2D mode, you can overlay if the WMS server can project to Mercator, but the browser can't do reprojection on the fly. You can use something like MapCruncher to reproject as a one-time build step if your data isn't dynamic.
I'd liek to see some examples.. we use ASP and have done the WMS with Google Maps using an ArcIMS server.. I just posted yesterday on how to get our exsisting Shp files, MrSID and other ESRI based extensions to work.
.. Jason
Hi,
Thanks for the reply. Do you have some codes available? I would like to connect my UMN mapserver to MSN VE 3d. I have looked a lot on Internet and only could find information on Tile Server. I have no idea of how to do this with a WMS.
A bit more information would be very much helpful. I am writing a research article on Virtual Earth Viewers and OGC services in a GIS magazine. Therefore it would be very nice if I could show some concrete results.
Thanks in advance for the information.
Greetings,
Shuman Kibria
kibria14829@itc.nl
HI again Duncan,
I was trying to understand what you meant but I can't figure out how you can add a WMS with the parameters MinLong MinLat MaxLong and MaxLat. If you have some concrete code it would save my say.
Thanks a lot for your reply. It is being an eye opener for me in my experiences with MSN VE.
Greetings
Shuman
You add a tile layer just like the SDK describes.
try{
vemap = new VEMap('mymapcontroldiv');
vemap.LoadMap(new VELatLong(47.22, -122.44), 12, 'r', false, VEMapMode.Mode3D);
}
catch(err){
alert(err.source + ':' + err.message);
}
try{
var bounds = [new VELatLongRectangle(new VELatLong(40.707,-80.354), new VELatLong(40.317,-79.596)), new VELatLongRectangle(new VELatLong(40.337,-75.716), new VELatLong(39.725,-74.532)), new VELatLongRectangle(new VELatLong(47.999,-123.459), new VELatLong(47.149,-121.541))];
var tileSourceSpec = new VETileSourceSpecification("MyLayer","http://igskmncngs056.cr.usgs.gov:80/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_National_Atlas?version=1.1.1&Request=GetMap&Layers=ATLAS_AVG_PRECIP&Styles=&SRS=EPSG:4326&BBOX=%16,%17,%18,%19&WIDTH=256&HEIGHT=256&TRANSPARENT=TRUE&FORMAT=image/gif",1,bounds,1,19);
vemap.AddTileSource(tileSourceSpec);
}
catch(err){
alert(err.source + ':' + err.message);
}
try{
var s = new VELayerSpecification(VELayerType.VETileSource,"MyLayer","MyLayer");
s.ZIndex=100;
vemap.AddLayer(s);
}
catch(err){
alert(err.source + ':' + err.message);
}
The 3D control accepts several new parameter id's (the 2D control will ignore them, so the overlay won't work in 2D mode).
Hi Duncan,
Thanks a lot. It worked now. I am now gonna add my own data on MSN virtual earth.
Greetings
Shuman Kibria
Duncan,
Where do things stand with regard to supporting WMS in 2D these days?
Also, any thoughts on WFS?
Regards,
Dave Smith...