raster not showing
didier.georgieff
didier.georgieff at AGRICULTURE.GOUV.FR
Tue Dec 7 09:05:55 PST 2004
Hello,
I'm trying to setup a mapserver demo (4.4.0), based on itasca model, and
spent the whole day on something that puzzle me ;-)
- itasca works fine including raster files.
- my demo works fine except that raster files doesn't show up (single
image or tile), but i got no error message.
===> I have a sdpen.map, an adapted index.html and a sdpen_basic.html based on itasca_basic.html.
So all works fine, except 'testign' (1 TIFF file) and 'ign25' (a tile shape for TIFFs) who are blank.
I checked and tfw are in meter and in the right coordinate range. TIFF are individually viewable with
any graphic program, and all this works like a charm under arc/info, arcview.
Did I missed an obvious option ?
Is there a simple way to have one of those TIFF showed by mapserver, to chack if thoses tiffs are valid
for mapserver ?
Any tip, idea would be welcome. Even a full solution ;-))))
===> While trying to understand my raster problem, I found something strange (to me ;-) :
if i change the layer name of one layer, without changing it in the sdpen_basic.html
LAYER
NAME ign25
to
LAYER
NAME ign25ZZZZZ
in sdpen.map but still reference to 'ign25' in sdpen_basic.html i don't have any error
on screen, and can't find error log message in httpd logs.
Is there any sort of caching problem ? Where can i get debug messages
(i have --enable-debug in ./configure)?
Thnaks in dvance for any help.
Regards.
=====> This is what i changed in index.html
<!-- EDIT THE FORM ACTION -->
<form name="demo" method="GET" action="/cgi-bin/mapserv" onSubmit="submit_form()">
<input type="hidden" name="layer" value="canton">
<input type="hidden" name="zoomsize" value=2>
<!-- EDIT THESE HIDDEN VARIABLES -->
<input type="hidden" name="map" value="/home/didier/data/sig-data/sdpen.map">
<input type="hidden" name="program" value="/cgi-bin/mapserv">
<input type="hidden" name="root" value="/sdpen">
<input type="hidden" name="map_web_imagepath" value="/var/www/html/tmp/">
<input type="hidden" name="map_web_imageurl" value="/tmp/">
<select name="map_web_template" size="1">
<option value="sdpen_basic.html"> SDPEN - Fonctions basiques
<option value="itasca_adds_frames.html"> -- Adds frames
</select>
<input type="submit" value="Initialize"></center>
</form>
===> This is what i changed in sdpen_basic.html
<b>Select Layers to Display: </b><br>
<select multiple name="layer" size=3>
<option value="canton" [canton_select]> Cantons - Bas-Rhin
<option value="zhum67" [zhum67_select]> Zones Humides - Bas-Rhin
<option value="decoupe_ign" [decoupe_ign_select]> Découpe IGN 1/25.000
<option value="testign" [testign_select]> TEST IGN 1/25.000 1 dalle
<option value="ign25" [ign25_select]> IGN 1/25.000 couleur
</select>
====> This is my sdpen.map
#
# /home/didier/data/sig-data/sdpen.map
# mapserver 4.4.0
#
MAP
NAME SDPEN_1997
STATUS ON
SIZE 400 400
EXTENT 930000 1100000 1030000 1150000
UNITS METERS
SHAPEPATH "/home/didier/data/sig-data/"
IMAGECOLOR 255 255 255
TEMPLATEPATTERN "sdpen"
IMAGETYPE PNG
#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END
SYMBOL
NAME 'star'
TYPE VECTOR
FILLED TRUE
POINTS
0 .375
.35 .375
.5 0
.65 .375
1 .375
.75 .625
.875 1
.5 .75
.125 1
.25 .625
END
END
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
IMAGEPATH ""
IMAGEURL ""
QUERYFORMAT text/html
END
#
# Start of reference map
#
REFERENCE
IMAGE graphics/reference.png
EXTENT 930000 1100000 1030000 1150000
SIZE 120 120
STATUS ON
MINBOXSIZE 5
MAXBOXSIZE 100
COLOR 255 0 0
OUTLINECOLOR 0 0 0
MARKERSIZE 8
MARKER 'star'
END
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 0 0 0
LABEL
COLOR 255 255 255
SIZE TINY
END
STYLE 1
SIZE 100 2
COLOR 255 255 255
UNITS METERS
INTERVALS 1
TRANSPARENT TRUE
STATUS ON
END
#
# Start of layer definitions
#
LAYER
NAME ign25
TYPE RASTER
STATUS OFF
OFFSITE 252 252 252
CLASS
NAME 'Digital Raster Graphic'
KEYIMAGE graphics/drgs_keyimage.png
END
TILEINDEX "ign25/index_ign25.shp"
TILEITEM "location"
END
LAYER
NAME testign
TYPE RASTER
STATUS OFF
OFFSITE 252 252 252
CLASS
NAME 'TEST IGN'
KEYIMAGE graphics/drgs_keyimage.png
END
DATA "ign25/d516.tif"
END
LAYER
NAME decoupe_ign
TYPE POLYGON
STATUS OFF
DATA "ign25/index_ign25.shp"
CLASS
NAME "Decoupe IGN"
STYLE
OUTLINECOLOR 100 100 100
END
END
END
LAYER
NAME canton
TYPE POLYGON
STATUS OFF
DATA "sdpen1997/canton"
CLASS
NAME "Cantons"
STYLE
COLOR 0 128 0
OUTLINECOLOR 0 0 0
END
END
END
LAYER
NAME zhum67
TYPE POLYGON
STATUS OFF
DATA "sdpen1997/zhum67"
CLASS
NAME "Zones Humides"
STYLE
OUTLINECOLOR 0 0 0
END
END
END
END # Map file
--
didier.georgieff <didier.georgieff at agriculture.gouv.fr>
DIDSIT du Bas-Rhin
More information about the MapServer-users
mailing list