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 02-13-2008, 02:56 PM   #1
mag
Junior Member
 
Join Date: Dec 2007
Posts: 5
mag is on a distinguished road
Default Using SRTM30 height data

Hi all!

I am creating a small java terrain viewer where I want to download height files(SRTM30plus) and match them with image files. Both files are downloaded from the same http://worldwind25.arc.nasa.gov server.

I am getting confused about the different lod-levels on image and height files. It seems that the image files have a maximum of 5 levels, and height files have more levels (9?). If this is the case, how do I find the correct height file for an arbitrary image file?

Any help will be appreciated!
mag is offline   Reply With Quote
Old 02-13-2008, 08:56 PM   #2
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

It is likely that you will not have matching tiles for elevations and images - each layer has its own quadtree grid with different zero level tile size, number of levels or extent.

What all virtual globes do is they download all the intersecting tiles for a given sector, at the needed or available resolution (level) for each layer involved (terrain, images, vector data, place names...) and recompose the scene using bits and pieces from each. This can involve resampling of some data.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 02-14-2008, 09:27 AM   #3
mag
Junior Member
 
Join Date: Dec 2007
Posts: 5
mag is on a distinguished road
Default

Thank you so much for your response!

I have been looking/running the javascript (and excel script) that was attached in this thread

http://forum.worldwindcentral.com/sh...nverter&page=4

and was given the impression that one .bil file matched a corresponding image file. I have successfully build my own view-dependent quad-lod algorithm that displays NWW imagery from the server, and now I want to add elevation data to these images.

If the two file-types do not cover the same geographic area, how do I find the correct .bil file(s) for an image tile?

Are you aware of any documentation or code available for this problem?

Your help is very much appreciated!

Last edited by mag; 02-14-2008 at 09:57 AM.
mag is offline   Reply With Quote
Old 02-14-2008, 02:34 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

You have to find out which level of detail you need, then which 'rows' and 'columns' are intersecting the sector you need.

See these documents:

NASA WorldWind Tile Structure
http://www.ceteranet.com/nww-tile-struct.pdf

http://issues.worldwind.arc.nasa.gov...le+systemt.gif
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 02-14-2008, 03:18 PM   #5
mag
Junior Member
 
Join Date: Dec 2007
Posts: 5
mag is on a distinguished road
Default

Thank you for your all help!

I am already using this successfully for downloading my images. The problem arise when I am using the same technique for .bil files. The .bil files with the same level of detail and same "row" and "column" does not look right when using it together with my image.

I have attached two screenshots from my application which illustrates my problem. The height data does not look correct, and I have problems with cracks between adjacent tiles, even with tiles with the same LOD level.

I am just using the one corresponding .bil file and not recomposing the scene by using bits and pieces from several .bil files, this might be my problem.
Attached Images
File Type: png Picture 7.png (91.3 KB, 255 views)
File Type: png Picture 8.png (111.8 KB, 219 views)

Last edited by mag; 02-14-2008 at 05:21 PM. Reason: added screenshots
mag is offline   Reply With Quote
Old 02-14-2008, 10:24 PM   #6
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

Quote:
Originally Posted by mag View Post
I am already using this successfully for downloading my images. The problem arise when I am using the same technique for .bil files. The .bil files with the same level of detail and same "row" and "column" does not look right when using it together with my image.
The level, row and cols for the SRTM data is likely different then from the image layers. You have to determine them separately for each layer in fact. This essentialy depends on the layer level zero tile size (or delta) in degrees, and the tiles dimensions (512x512 for images, 150x150 for .bil).

The cracks you get are completely expected with tiled terrains - welcome to virtual terrains In WW (.net and java) the tesselator builds 'skirts' on each terrain tile side to fill those gaps.

Are you rewriting WW?
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 02-15-2008, 06:31 PM   #7
rational_8
Junior Member
 
Join Date: Jan 2008
Posts: 28
rational_8 is on a distinguished road
Default

Hi,
In my understanding bil file need to be of same width-height ratio only. It does not need to be for all tiles. what is the relation of bil file size with layer level zero tile size. any formula? I am actually looking for importing my custom tiles and .bil file into WW. Any help will be great.
rational_8 is offline   Reply With Quote
Old 02-15-2008, 10:18 PM   #8
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 is no constraints regarding how fine the SRTM data layer (.bils) is compared to other image layers. Each layer has its own level parameters that describe how its tiles are organized. WW will determine which level and which row and cols need to be involved from each layer when compositing the terrain.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 02-18-2008, 11:57 AM   #9
rational_8
Junior Member
 
Join Date: Jan 2008
Posts: 28
rational_8 is on a distinguished road
Default

Hi patmurris,
Thanks for response. I understand the NASA WorldWind Tile Structure you had posted above. But where I could found details of level parameter description so I could create my own .bil files according to my texture data tiles.
rational_8 is offline   Reply With Quote
Old 02-18-2008, 06:33 PM   #10
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

Look into globe.ElevationModel, EarthElevationModel...
__________________
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
i need come bmp files i need bmp files for using in height data examples jopeter Developers' Corner 0 11-30-2007 11:26 AM
Vertical resolution turman Development Help 22 10-12-2007 12:07 PM
Greyscale height data? spacebovine Power Users & Educators 15 06-17-2006 10:30 PM
WW mentioned in article KoS WorldWind General 5 01-18-2006 04:23 PM
height and image data mis-aligned in some cases unregistered Bug Reports 15 03-05-2005 01:38 PM


All times are GMT +1. The time now is 12:07 PM.


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