<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><STRONG>I'm a newbie with MapServer so, I'm coming
with this question:</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG>I put up my first map sample with two
shapefiles, created in ArcGis:</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG>Comuni.shp</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG>idro_serchio.shp</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG></STRONG></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>I've written the map file to try the first
layer:</STRONG></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>MAP</DIV>
<DIV>
<P># project name</P>
<P>NAME bacino_serchio</P>
<P>STATUS ON</P>
<P># maximum map extent</P>
<P>EXTENT 1594000 4910000 1670000 4830000</P>
<P>UNITS METERS</P>
<P># path variable to our map data, in our case the tif files</P>
<P>SHAPEPATH "/ms4w/apps/tesi/serchio"</P>
<P># default color for nodata values: white</P>
<P>IMAGECOLOR 255 255 255</P>
<P> OUTPUTFORMAT</P>
<P> NAME png</P>
<P> DRIVER "GDAL/PNG</P>
<P> MIMETYPE "image/png"</P>
<P> IMAGEMODE RGB</P>
<P> EXTENSION "png"</P>
<P> END</P>
<P> PROJECTION</P>
<P> "proj=tmerc"</P>
<P> "ellps=intl"</P>
<P> "lat_0=0n" # latitude of origin </P>
<P> "lon_0=9e" # meridian for stripe number 3</P>
<P> "x_0=1500000." # Stripe number 3 for 9 deg E, Offset:
500000</P>
<P> "y_0=0." # offset y</P>
<P> "k=0.996" # scale factor</P>
<P> "units=m"</P>
<P> END</P>
<P>LAYER</P>
<P>NAME "Comuni Serchio"</P>
<P>GROUP "comuni"</P>
<P>DATA "Comuni"</P>
<P>TYPE POLYGON</P>
<P>STATUS ON</P>
<P> CLASS</P>
<P> NAME "Comuni"</P>
<P> COLOR 255 0 0</P>
<P> OUTLINECOLOR 255 255 255</P>
<P> END</P>
<P>END</P>
<P><FONT face=Arial>END</FONT></P>
<P><FONT face=Arial><STRONG>And everything goes right, but when I rewrite the
map file with the other shapefile (and call it in the URL, with
"LAYERS=idro_serchio") I receive an exception saying:</STRONG><FONT size=2></P>
<P>"msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in the
LAYERS parameter."</P>
<P><STRONG>I tried to copy and paste Comuni as Comuni2, rename the DATA of the
LAYER: same problem, the shape exists, is the same as Comuni, but still receive
the excpetion... </STRONG></P>
<P><STRONG>Is there a cache with the mapfile or whatelse?!!!</STRONG></P>
<P><STRONG>Giovanni
(Italy)</STRONG></P></FONT></FONT></FONT></DIV></BODY></HTML>