World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Applications

Applications Discussion of applications that use WWJ

Reply
 
Thread Tools Display Modes
Old 02-03-2009, 07:06 AM   #1
Omega
Junior Member
 
Join Date: Oct 2008
Posts: 26
Default Microsoft Virtual Earth (improved)

I've created a working Virtual Earth layer, based on the TiledImageLayer and BasicTiledImageLayer by Tom Gaskins. It works much the same way, but calculates the tile and subtile sectors differently. It also reprojects the Virtual Earth images (mercator) slightly, so they fit with the World Wind tiles (plate carrée).

It shouldn't take too much modification to create a Google Earth version too.

Hope this is of use to somebody
Attached Images
File Type: jpg screenshot1.jpg (43.7 KB, 3198 views)
File Type: jpg screenshot2.jpg (80.8 KB, 2898 views)
Attached Files
File Type: zip VirtualEarthLayer.zip (23.5 KB, 560 views)

Last edited by Omega; 02-05-2009 at 05:13 AM. Reason: Added different datasets
Omega is offline   Reply With Quote
Old 02-03-2009, 01:57 PM   #2
TomServo
God. Root. What is difference?
 
TomServo's Avatar
 
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,856
Default

Looks good. But I would not recommend a Google Earth version... Google does not like to share.
__________________


Earth is Square blog

PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe.
TomServo is offline   Reply With Quote
Old 02-03-2009, 03:00 PM   #3
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Default

An Open Street Map version based on their 'slippy map' Mercator version would be great as it is much more up to date then the WMS version we actually use in the OpenStreetMapLayer.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 02-03-2009, 07:15 PM   #4
vash
Member
 
Join Date: May 2007
Location: Toulouse
Posts: 92
Default

Thank you omega! This is very useful for me.
I've used your code to create a new OpenStreetMap layer that uses the 'slippy map' Mercator version instead of the WMS version.

Edit : your implementation works great but i have the impression that the data are a little blurry. I think that the render could be far better if WorldWind could display tiles with better resolution but i don't know how to tune that.
Attached Files
File Type: txt OSMMapnikLayer.java.txt (1.8 KB, 528 views)
__________________
-Nicolas CASTEL- Thales Alenia Space, GMES program, Toulouse, France-

Last edited by vash; 02-03-2009 at 07:28 PM.
vash is offline   Reply With Quote
Old 02-03-2009, 09:28 PM   #5
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Default

This is probably a matter of level selection. I haven't looked at the code yet, but it happens in the needToSplit() method of BasicTiledImageLayer.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 02-03-2009, 10:08 PM   #6
adanecito
Senior Member
 
Join Date: Apr 2008
Location: Boise ID
Posts: 264
Default

Oh just great just when I finished coding/testing/releaseing my special icon management feature you guys throw something tempting on the forum.

When's a person going to get some sleep? Just no respect I tell you for one's sleep quota.

Okay something interesting for me to think about for MyUniPortal. I will probably have it done by say 4:00AM tomorrow.

Thanks (really),
Tony Anecito
Founder,
MyUniPortal
http://www.myuniportal.com
adanecito is offline   Reply With Quote
Old 02-03-2009, 11:35 PM   #7
Omega
Junior Member
 
Join Date: Oct 2008
Posts: 26
Default

Quote:
Originally Posted by vash View Post
Edit : your implementation works great but i have the impression that the data are a little blurry. I think that the render could be far better if WorldWind could display tiles with better resolution but i don't know how to tune that.
Thanks vash for the OpenStreetMap layer!

I believe the reason the tiles look blurry is because the VirtualEarth and OpenStreetMap tiles are 256x256, whereas the NASA tiles are 512x512. One way to fix this would be to change the needToSplit() function, as Pat Murris suggested. Another way would be to call the function setSplitScale(double) in the layer's constructor. The default World Wind splitScale is 0.9: I have found that 1.3 is a good value for the Virtual Earth layer.

The VirtualEarthLayer constructor would now look like this:

Code:
	public VirtualEarthLayer()
	{
		super(makeLevels());
		setSplitScale(1.3);
	}
This will fix the blurriness. I have updated the code in the first post.

Last edited by Omega; 02-04-2009 at 01:10 AM.
Omega is offline   Reply With Quote
Old 02-04-2009, 12:39 AM   #8
bull
Cosmic Overlord
 
bull's Avatar
 
Join Date: Oct 2004
Location: United Kingdom
Posts: 2,362
Default

Doh its Java and not for .NET, good work though .
__________________
Bull_[UK]

bull is offline   Reply With Quote
Old 02-04-2009, 01:07 AM   #9
TomServo
God. Root. What is difference?
 
TomServo's Avatar
 
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,856
Default

Quote:
Originally Posted by adanecito View Post
Oh just great just when I finished coding/testing/releaseing my special icon management feature you guys throw something tempting on the forum.

When's a person going to get some sleep? Just no respect I tell you for one's sleep quota.

Okay something interesting for me to think about for MyUniPortal. I will probably have it done by say 4:00AM tomorrow.

Thanks (really),
Tony Anecito
Founder,
MyUniPortal
http://www.myuniportal.com
Sleep is for the weak!

All need is a 2 hour nap before going into work tonight... Only working till 6am.. so I will be checking for your update at 6:30am.
__________________


Earth is Square blog

PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe.
TomServo is offline   Reply With Quote
Old 02-04-2009, 06:59 AM   #10
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Default

Would that work for the French Geoportail?
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Virtual Earth Sharky Applications 30 06-19-2008 03:39 PM
Virtual Earth Imagery in WW 1.4 nkrause WorldWind General 5 01-20-2007 11:23 PM
Virtual Earth 3D m_k Community Chat 9 11-14-2006 01:41 AM
Microsoft Virtual Earth guest WorldWind General 5 07-25-2005 02:54 PM
Virtual Earth uninspiredname WorldWind General 1 06-23-2005 12:29 AM


All times are GMT +1. The time now is 04:41 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.