MapTools.org

[maplab-users] Tutorial Raster Layer Using maplab-2.0-dev20030422 Not rendering

John Norton jnorton@fs.fed.us
Wed, 23 Apr 2003 11:32:55 -0600
After installing maplab-2.0-dev20030422 and running the tutorial project I
could not get the bath_mapserver.tif layer to render. I noticed that
INPUT=TIFF is not compiled into mapscript_37 so I went and built a
tileindex shapefile and then that raster layer rendered with the map.
Great! But, now I want to build my own map with a RASTER layer. My raster
file looks like this:
Driver: GTiff/GeoTIFF
Size is 11453, 8504
Coordinate System is `'
Origin = (-5791247.097672,6903854.269482)
Pixel Size = (1000.000000,-1000.000000)
Metadata:
  TIFFTAG_SOFTWARE=Arc/Info
Corner Coordinates:
Upper Left  (-5791247.098, 6903854.269)
Lower Left  (-5791247.098,-1600145.731)
Upper Right ( 5661752.902, 6903854.269)
Lower Right ( 5661752.902,-1600145.731)
Center      (  -64747.098, 2651854.269)
Band 1 Block=11453x1 Type=Byte, ColorInterp=Red
  Min=0.000/0, Max=255.000/0, Computed Min/Max=0.000,250.000
Band 2 Block=11453x1 Type=Byte, ColorInterp=Green
  Min=0.000/0, Max=255.000/0, Computed Min/Max=0.000,250.000
Band 3 Block=11453x1 Type=Byte, ColorInterp=Blue
  Min=0.000/0, Max=255.000/0, Computed Min/Max=0.000,250.000

World File is:
                1000.00000000000000
                   0.00000000000000
                   0.00000000000000
               -1000.00000000000000
            -5791247.09767184130000
             6903854.26948160120000

I ran gdaltindex on this tiff file and got the tile shape file and
installed it into my map file just as I did with the tutorial image. Just
one tile (for now). The raster layer does not render at all! My map file is
using this for EXTENT -5791247.098 -1600145.731 5661752.902 6903854.269.
First thing I check for such problems. Maplab does not generate any errors.
This is my first time using INPUT=GDAL with Mapscript. I have used GeoTiffs
quite a bit with the mapserv CGI and have had no problems. In fact I loaded
some of those .map files into maplab and I could not get the raster layers
to render either. I have looked under every rock, I think, on the docs,
especially the RASTER-HOW-TO. I would imagine whoever wrote this...
                                                                            
                                                                            
                                                                            
     Eventually I should add some general information on how to             
     preprocess raster data for optimal use in MapServer, and give          
     specific information on how to use GDAL's rgb2pct.py, gdaladdo and     
     gdal_translate to converting stuff into pseudocolored, tiled GeoTIFF   
     files with overviews.                                                  
                                                                            
                                                                            
                                                                            


Probably has some incite for this. I am running Windoze 2K with Apache 2.
Can anyone make suggestions on:
1. Why is my raster layer not rendering?
2. How can I break a large GeoTiff with wld file into smaller ones with wld
files? Are the wld files required?
3. How can I build a colormap into a GeoTiff to improve performance?

Cheers
------------------------------------------------------
John Norton
USDA-RSAC
2222 W 2300 S
Salt Lake City, UT 84119
Phone: 801-975-3766
Fax: 801-975-3478
Intranet: fsweb.rsac.fs.fed.us
Internet: www.fs.fed.us/eng/rsac/
------------------------------------------------------




This archive was generated by Pipermail.