World Wind Forums

Go Back   World Wind Forums > WorldWind Development (Other) > Image Serving & GIS

Image Serving & GIS Developing and serving World Wind content; other GIS issues.

Reply
 
Thread Tools Display Modes
Old 01-08-2007, 11:43 PM   #1
Holywhippet
Junior Member
 
Join Date: Jan 2007
Posts: 14
Holywhippet is on a distinguished road
Unhappy Problem using dstile

The sample file linked to on this page: http://www.worldwindcentral.com/wiki/Dstile_howto works fine, but whenever I try a different raster it never works. For example, I have a raster which has these bounds:

top: 71.9667029774756
bottom: -72.0332970225244
left: -180
right: 180

So I tried dstile with various settings for lztsd, here are the results:

Quote:
C:\Program Files\FWTools1.1.2>dstile.exe tile --lztsd 180.0 --wwcache --overview
s output_tiles global_basement_model.img
lztsd set to 180.000000
Tile Mode set to WW Cache
global_basement_model.img:0.1625334150.6 6758391100 - done.
Building overviews:066133
C:\Program Files\FWTools1.1.2>dstile.exe tile --lztsd 10.0 --wwcache --overviews
output_tiles global_basement_model.img
lztsd set to 10.000000
Tile Mode set to WW Cache
global_basement_model.img:0...10...20... 30...40...50...60...70...80...90...100 -
done.
Building overviews:0
C:\Program Files\FWTools1.1.2>dstile.exe tile --lztsd 50.0 --wwcache --overviews
output_tiles global_basement_model.img
lztsd set to 50.000000
Tile Mode set to WW Cache
global_basement_model.img:0...11...22..3 0...41..50...61...72..80...91..100 - don
e.
Building overviews:0
C:\Program Files\FWTools1.1.2>dstile.exe tile --lztsd 100.0 --wwcache --overview
s output_tiles global_basement_model.img
lztsd set to 100.000000
Tile Mode set to WW Cache
global_basement_model.img:01020304050607 08090100 - done.
Building overviews:0
C:\Program Files\FWTools1.1.2>dstile.exe tile --lztsd 360.0 --wwcache --overview
s output_tiles global_basement_model.img
lztsd set to 360.000000
Tile Mode set to WW Cache
global_basement_model.img:0.1625334150.6 6758391100 - done.
Building overviews:062112
C:\Program Files\FWTools1.1.2>dstile.exe tile --lztsd 1.0 --wwcache --overviews
output_tiles global_basement_model.img
lztsd set to 1.000000
Tile Mode set to WW Cache
global_basement_model.img:0...10...20... 30...40...50...60...70...80...90...100 -
done.
Building overviews:0
None of the jpgs it produced looked particularly good to me.

What am I missing here? I can provide the source image if need be.
Holywhippet is offline   Reply With Quote
Old 01-09-2007, 12:13 AM   #2
withak
What?
 
withak's Avatar
 
Join Date: Apr 2005
Location: San Francisco, California
Posts: 2,461
withak
Default

It looks like it is working fine. What kind of image is your .img file? The problem may be in converting whatever that is to jpg.
withak is offline   Reply With Quote
Old 01-09-2007, 02:30 AM   #3
Holywhippet
Junior Member
 
Join Date: Jan 2007
Posts: 14
Holywhippet is on a distinguished road
Default

Quote:
Originally Posted by withak
It looks like it is working fine. What kind of image is your .img file? The problem may be in converting whatever that is to jpg.
That particular image was an ERDAS Imagine type.

I tried again with a tif type image, this is the output from dstile:

C:\Program Files\FWTools1.1.2>dstile.exe tile --lztsd 140.0 --wwcache --overview
s output_tiles shn706_seebase_i.tif
lztsd set to 140.000000
Tile Mode set to WW Cache
shn706_seebase_i.tif:0...10...20...31... 40...50...60...70...81...90...100 - done
.
Building overviews:0.11.23.3542.51.62.7881.96102


The jpgs it produced look ok. Here is the contents of the XML file for the image:

<?xml version="1.0" encoding="UTF-8"?>
<LayerSet Name="Geology maps" ShowOnlyOneLayer="false" ShowAtStartup="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="LayerSet. xsd">
<QuadTileSet ShowAtStartup="true">
<Name>Seebase</Name>
<DistanceAboveSurface>0</DistanceAboveSurface>
<BoundingBox>
<North>
<Value>84</Value>
</North>
<South>
<Value>40</Value>
</South>
<West>
<Value>-79</Value>
</West>
<East>
<Value>60</Value>
</East>
</BoundingBox>
<TerrainMapped>true</TerrainMapped>
<ImageAccessor>
<LevelZeroTileSizeDegrees>140</LevelZeroTileSizeDegrees>
<NumberLevels>6</NumberLevels>
<TextureSizePixels>512</TextureSizePixels>
<ImageFileExtension>jpg</ImageFileExtension>
<PermanentDirectory>Data\Earth\output_ti les</PermanentDirectory>
</ImageAccessor>
<TransparentColor><Red>0</Red><Green>0</Green><Blue>0</Blue></TransparentColor>
</QuadTileSet>
</LayerSet>

The image should appear between North Africa and Greenland approximately. Instead, when I start up World Wind I find the image being shown over Brazil. If I try to zoom in on it the image gets patchy - either partially showing or disappearing. When I quit World Wind and take a second look at the images, some of them have been replaced by files with a DDS extension.
Holywhippet is offline   Reply With Quote
Old 01-09-2007, 04:43 AM   #4
David Lockwood
Senior Member
 
David Lockwood's Avatar
 
Join Date: Mar 2006
Posts: 210
David Lockwood
Default

So far, the only thing I've gotten to work properly is a GeoTiff file. I've tried a few others with no results.
__________________
"No Silicon Heaven?! Preposterous!...where would all the calculators go?"
David Lockwood is offline   Reply With Quote
Old 04-03-2008, 04:15 PM   #5
Tamas Kornai
Junior Member
 
Join Date: Mar 2008
Posts: 25
Tamas Kornai is on a distinguished road
Default

Did anybody manage to create tiles with dstile from a georeferenced jpg file?

I've included in the directory the word file (with jgw and jpw extension as well), and I've tried more different FWTools version. The output I get is like:

lztsd set to 36.000000
Tile Mode set to WW Cache
:

And then returns to the command line, without any files have been created. I managed to create the tile structure from a GeoTIFF file, so my problem is with the jpg + wordfile combination.

Thanks for your help.
Tamas Kornai is offline   Reply With Quote
Old 04-04-2008, 12:31 AM   #6
what_nick
Worldwind Developer
 
Join Date: Jan 2006
Location: Hobart, Australia
Posts: 754
what_nick is an unknown quantity at this point
Default

Hi the jpg+worldfile combination does not specify the projection of the image. You can supply this missing information using filename.prj file. The prj file contains the projection infor from the tif given by the top section of the "gdalinfo" on the tif file. You can also use the srcProj option is dstile to supply the source projection in epsg code.

Cheers,

what_nick
__________________
Coding This and That in World Wind and helping new people out, as long as they don't pester too much.
Currently blogging at: http://whatnicklife.blogspot.com
Working at:
Aerometrex - http://aerometrex.com.au/blog/
Impact so far:


what_nick is offline   Reply With Quote
Old 04-04-2008, 11:16 AM   #7
Tamas Kornai
Junior Member
 
Join Date: Mar 2008
Posts: 25
Tamas Kornai is on a distinguished road
Default

Dear what_nick, thank you for your fast reply.

Would it be possible to attach a map with the appropriate world and projection files? It would help to work out the needed format for my own files. (Word file is quite well documented, but I'couldn't find an example projection file.)

Thank for your help,
Tamas
Tamas Kornai 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
problem connecting to server wait 2 min mikl Technical Support 3 01-11-2010 07:44 AM
Viewing problem, picture still fuzzy Unregistered Install Support 1 09-04-2006 11:05 AM
Problem in texture or terrain visualization gabrio Technical Support 5 05-27-2006 01:34 AM
Problem connection to server.. sector Technical Support 25 12-13-2004 06:53 PM
High-altitude urban problem BeerAndLoathing Bug Reports 0 11-15-2004 08:17 PM


All times are GMT +1. The time now is 08:43 AM.


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