World Wind Forums

Go Back   World Wind Forums > WorldWind Development (Other) > Image Serving & GIS > More problems using dstile

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

Thread: More problems using dstile Reply to Thread
Your Username: Click here to log in
Image Verification
Title:
  
Message:
Post Icons
You may choose an icon for your message from the following list:
 

Additional Options
Miscellaneous Options

Topic Review (Newest First)
04-24-2008 02:31 AM
what_nick Hi,

Here is the doc:
--srcProj is used to specify projection for files without one e.g .tif/.tfw set, use the epsg code, e.g. epsg:32754 is UTM Zone 54S , epsg:4326 is WGS84.

Regards,

what_nick.
04-23-2008 12:45 PM
nlneilson
Quote:
Originally Posted by what_nick View Post
I better pitch in:
1) --srcProj options takes in an EPSG code for example UTM zone 54S is epsg:32754.
2) pct2rgb is one command so well if you are uncomfortable with command chaining please revive the in-WorldWind tiler ie DSTileGUI.

Feel free to contact me for more pointers or mod suggestions to dstile.
These two sentences raise questions rather than answers for me.
The only documentation I have is "Dstile howto", please post a link or information where other documentation can be found.

1) --srcProj ??? where is there info on this, I did not find this in the "howto"

2) pct2rgb - I got this FWTools command working but " revive the in-WorldWind tiler ie DSTileGUI." I did not use that in WW.net and am making tiles that can be used in WWJ also. I have not found any GUI for DSTile but the download did include DsTileQtGUI but what that does is not clear, I could not get it to open.

You have done a very good job on dstile but documentation on how it is to be used is needed.

FWTools - GDAL - is in Python, have you considered porting dstile to Python also?
04-23-2008 02:24 AM
what_nick I better pitch in:
1) --srcProj options takes in an EPSG code for example UTM zone 54S is epsg:32754.
2) pct2rgb is one command so well if you are uncomfortable with command chaining please revive the in-WorldWind tiler ie DSTileGUI.
3) I see sometime ago someone was tiling an image over the Murray(shameless plug - contact http://www.apogee.com.au directly we are local and we code WorldWind) consider using the srcProj option.
4) As long as GDAL was built with Zip support LZW works fine, since tiles are returned from calls to GDAL API and decompression works seamlessly, performance might be slightly hit - just as is the case if you use PNG output option.

Feel free to contact me for more pointers or mod suggestions to dstile.

Cheers,

what_nick.
04-22-2008 09:31 AM
nlneilson Here is one way a file can be clipped in FWTools.

gdal_translate.exe -srcwin 1100 20 9840.0 4020.0 in_file out_file

The first and second numbers are the x and y offset in pixels from the upper left corner and the third and fourth are the x and y size of the out_file.

The offset plus size cannot be bigger than that of the in_file.
04-22-2008 06:20 AM
nlneilson Having problems clipping a file. Following the "Dstile howto"
Code:
from >gdalinfo "Los Angeles 82 North rgb".tif
Upper Left  ( -346872.964,  278108.403) (122d22'56.62"W, 36d36'48.05"N)
Lower Left  ( -346872.964,   13381.284) (122d16'4.37"W, 34d13'36.74"N)
Upper Right (  355301.523,  278108.403) (114d31'24.14"W, 36d36'37.02"N)
Lower Right (  355301.523,   13381.284) (114d38'26.37"W, 34d13'26.03"N)
Center      (    4214.279,  145744.843) (118d27'12.65"W, 35d28'53.50"N)

gdal_translate.exe -projwin -121.51 36.06 -114.60 34.28 "Los Angeles 82 North rgb".tif "Los Angeles 82 North rgb clipped".tif
The lat-lon are within the bounds but part of the output:
Input file size is 11005, 4149
Computed -srcwin 5434 4358 0 0 from projected window.
Computed -srcwin falls outside raster size of 11005x4149.

Changing the lat-lon even farther into the bounds gives a similar error, any suggestions?
04-21-2008 09:52 PM
Matt Fox By the way, I know a little late, but the OP may want to check and see if TIF file uses LZW or some other compression. That might throw dstile off.
04-19-2008 02:24 AM
nlneilson
dstile color?

Quote:
Originally Posted by withak View Post
Is it indexed color? You have to convert it to rgb before dstile can handle it.
From the links here the FWTools and dstile were downloaded today.
http://www.worldwindcentral.com/wiki...uired_Software

dstile seems to work OK except the output files are just greyscale, no color.
pct2rgb works OK without these args but what are they for?
[-of format] [-b <band>]
Usage: pct2rgb.py [-of format] [-b <band>] source_file dest_file

Has some one made a batch file to "pct2rgb->dstile" for all the files in a directory?
01-16-2007 04:23 AM
Holywhippet This is what gdalinfo said about the file in question:

C:\Frogtech Output>gdalinfo Murray_1VDup100m_RTP_Z54.tif
Driver: GTiff/GeoTIFF
Size is 4281, 4664
Coordinate System is `'
Origin = (494134.313669923460000,6464678.16157053 6000000)
Pixel Size = (79.999995261709273,-79.999995261709273)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
COMPRESSION=PACKBITS
Corner Coordinates:
Upper Left ( 494134.314, 6464678.162)
Lower Left ( 494134.314, 6091558.184)
Upper Right ( 836614.293, 6464678.162)
Lower Right ( 836614.293, 6091558.184)
Center ( 665374.304, 6278118.173)
Band 1 Block=4281x1 Type=Byte, ColorInterp=Red
Overviews: 1068x1164, 533x581, 265x289, 131x143, 64x70, 31x34
Band 2 Block=4281x1 Type=Byte, ColorInterp=Green
Overviews: 1068x1164, 533x581, 265x289, 131x143, 64x70, 31x34
Band 3 Block=4281x1 Type=Byte, ColorInterp=Blue
Overviews: 1068x1164, 533x581, 265x289, 131x143, 64x70, 31x34

This didn't help either:

C:\Program Files\FWTools1.1.2>dstile.exe tile --lztsd 5.625 --wwcache --overviews murray Murray_1VDup100m_RTP_Z54.tif --srcProj Murray_1VDup100m_RTP_Z54.tif.xml

lztsd set to 5.625000
Tile Mode set to WW Cache
:
01-14-2007 11:20 PM
Holywhippet For the files I use, the projection is generally in a second file - either a .prj or a .xml.
01-12-2007 10:53 PM
withak
Quote:
Originally Posted by Holywhippet
It has projection info in an xml file - but if I'm not mistaken, dstile doesn't look for projection information. The xml you create for WW has that.
WW can only handle geographic projection, and the xml just tells it where to put the tiles on the globe. Dstile will reproject to this on the fly if necessary so it does need to know the projection of the source image. I think you can use the --srcProj option to tell dstile the source projection if it isn't already specified in the file.
This thread has more than 10 replies. Click here to review the whole thread.

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

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


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