![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Dec 2007
Posts: 5
![]() |
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! |
|
|
|
|
|
#2 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
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. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2007
Posts: 5
![]() |
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. |
|
|
|
|
|
#4 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
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 |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Dec 2007
Posts: 5
![]() |
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. Last edited by mag; 02-14-2008 at 05:21 PM. Reason: added screenshots |
|
|
|
|
|
#6 | |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
Quote:
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? |
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jan 2008
Posts: 28
![]() |
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. |
|
|
|
|
|
#8 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
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.
|
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Jan 2008
Posts: 28
![]() |
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. |
|
|
|
|
|
#10 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
Look into globe.ElevationModel, EarthElevationModel...
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |