World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 05-23-2007, 07:16 AM   #1
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Lightbulb Loading WW image layers in WWJ

Here is a very first shot at a WW 'layer loader' for WWJ. It can create tiled image layers from a World Wind XML layer definition. No WMS yet.


Geocover 2000 in WWJ

This very first version only supports layers with a ImageTileService definition node - no support for WMS. I tested it with a copy of @Images.tmp. This should work for ZoomIt too.

I'm not sure WWJ supports WMS yet...

It works, but the download seems hazardous... not sure if WWJ struggles or the servers are slow.
__________________
My World Wind Java Blog & WW.net Plugins page

Last edited by patmurris; 05-23-2007 at 07:23 AM.
patmurris is offline   Reply With Quote
Old 05-23-2007, 05:47 PM   #2
bull
Cosmic Overlord
 
bull's Avatar
 
Join Date: Oct 2004
Location: United Kingdom
Posts: 2,362
bull is an unknown quantity at this point
Default

Sweet, looks like the first WWC Java client may well be completly coded by you
bull is offline   Reply With Quote
Old 05-23-2007, 06:03 PM   #3
sophiap
Junior Member
 
Join Date: May 2007
Posts: 1
sophiap is on a distinguished road
Default

If you look at PoliticalBoundaries.java, you'll see the code for adding a WMS. Here's a shaded SRTM layer from our server.



The code uses parameters for a WMS 1.1.1, but it lacks the "version=1.1.1" parameter, which can confuse a WMS. This can cause a bunch of tiles with inimage errors to be downloaded. Speaking of which, does anyone know how to clean or flush the tile cache in WWJ, or where its written?
sophiap is offline   Reply With Quote
Old 05-23-2007, 07:52 PM   #4
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

Very good hint for WMS... i'll look into it right away
There is some urlBuilder code for WMS in this thread posted by vash.
The cache on windows is in C:\Documents and Settings\All Users\Application Data\WorldWindData
__________________
My World Wind Java Blog & WW.net Plugins page

Last edited by patmurris; 05-23-2007 at 07:54 PM.
patmurris is offline   Reply With Quote
Old 05-24-2007, 03:26 AM   #5
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Arrow XML Layer loader with WMS support

Here is version 0.2 of the WW XML Layer 'loader'. With WMS support.


France BRGM geology layers from a WMS server - this would need some shading

So far it works fine, but i'm not sure which wms arguments are requiered and when, so it may not fit all servers... and layer are loading too soon - i have to figure out the number of 'empty levels'.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 05-31-2007, 06:55 AM   #6
GIS
Member
 
Join Date: Feb 2006
Posts: 35
GIS
Default

I am not sure if I am following here. Does this mean it can load tiles from WW cache pack for offline use? I remember reading somewhere the tile format is slightly different.
GIS is offline   Reply With Quote
Old 05-31-2007, 09:07 AM   #7
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

Not exactly. It allows WWJ to connect to the various servers and layersets that are described in WW xml config files used with the actual .net version.

The cache packs are another problem that has been raised - WWJ use a different naming convention like 1-1.dds instead of 0001-0001.dds for the cache.
__________________
My World Wind Java Blog & WW.net Plugins page

Last edited by patmurris; 05-31-2007 at 09:11 AM.
patmurris is offline   Reply With Quote
Old 05-31-2007, 09:24 AM   #8
GIS
Member
 
Join Date: Feb 2006
Posts: 35
GIS
Default

Quote:
Originally Posted by patmurris View Post
Not exactly. It allows WWJ to connect to the various servers and layersets that are described in WW xml config files used with the actual .net version.

The cache packs are another problem that has been raised - WWJ use a different naming convention like 1-1.dds instead of 0001-0001.dds for the cache.

Am I right to say that if we can do some kind of conversion to the filename just before the file is being loaded into memory i.e. converting a 1-1.dds to 0001-0001.dds, we can make use of our existing cache?
GIS is offline   Reply With Quote
Old 05-31-2007, 09:57 AM   #9
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

There may be several ways to achieve some kind of cache compatibility. I havent looked into it yet. The problem may be to do it from 'outside' the core... not sure.

One way or an other, i cant imagine WWJ ignoring terabytes of existing WW cache - and the corresponding bandwidth/server load.
__________________
My World Wind Java Blog & WW.net Plugins page

Last edited by patmurris; 05-31-2007 at 11:58 PM.
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
Dissolve Image Layers on Zoom In webbhead Suggestion Box 0 08-17-2006 01:34 AM
DDS private image layers pcoilland Bug Reports 1 04-25-2005 01:10 PM
The New Zealand Layers: The LINZ Data as Layers canosso Add-ons & Scripts 8 04-25-2005 02:03 AM
problem with image not loading edolen1 Bug Reports 4 03-27-2005 08:58 PM
Add image layers to World Wind Mars joosthoek Add-ons & Scripts 4 03-02-2005 08:06 PM


All times are GMT +1. The time now is 03:01 PM.


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