[Mapserver-users] newbie ques: example 1-5

nuhaa nafrish at yahoo.com
Tue Jul 27 23:17:04 PDT 2004


hi list,

i'm fairly new to mapserver/gis and i have this problem regarding the
tutorials. i've tried them and everything worked up until they
involved raster images. they'll give me 'internal server error'. i've
tried changing the imagetype but that didn't work. even if i turned
off the raster layer, other layers wouldn't show up. what caused
this?

also i noticed that on previous examples, some of them would only
show up with certain imagetype. they would show up with gif, not png.
anyone knows reasons for this and how can i make png work too?

mapserver is on xp.

-----------------------------------
MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE
SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE

-----------------------------------
MAP
IMAGETYPE      png
EXTENT        201621.496941 -294488.285333 1425518.020722
498254.511514
SIZE           400 300
SHAPEPATH      "d:\htdocs\tutorial\data"
FONTSET        "fonts\fonts.list"
SYMBOLSET      "symbols\symbols35.sym"

PROJECTION
#  "proj=laea"
#  "ellps=clrk66"
#  "lat_0=45"
#  "lon_0=-100"
#
# Alternatively, you can specify an EPSG code.
 "init=epsg:2163"
#
END

# Start of LAYER DEFINITIONS -------------------
LAYER # States polygon layer begins here
  NAME         states
  DATA         states_ugl
  STATUS       OFF
  TYPE         POLYGON

  PROJECTION
    "init=epsg:4326"
  END

  CLASSITEM    "CLASS"
  CLASS
    EXPRESSION 'land'
    COLOR      232 232 232
  END
END # States polygon layer ends here

LAYER # MODIS raster layer begins here
  NAME         modis
    DATA "raster/mod09a12003161_ugl_ll_8bit.tif"
STATUS DEFAULT
TYPE RASTER
PROCESSING "BANDS=1,2,3"
OFFSITE 71 74 65

  PROJECTION
    "init=epsg:4326"
  END
END # MODIS raster layer ends here

LAYER # States line layer begins here
  NAME         states_line
  DATA         states_ugl
  STATUS       DEFAULT
  TYPE         LINE

  PROJECTION
    "init=epsg:4326"
  END

  CLASSITEM    "CLASS"
  CLASS
    EXPRESSION 'land'
    SYMBOL     'line5'
    COLOR      64 64 64
    SIZE       1
  END
END # States line layer ends here

LAYER # States label layer begins here
  NAME         states_label
  DATA         states_ugl
  STATUS       DEFAULT
  TYPE         ANNOTATION

  PROJECTION
    "init=epsg:4326"
  END

  CLASSITEM    "CLASS"
  LABELITEM    "STATE"
  CLASS
    EXPRESSION 'land'
    COLOR      -1 -1 -1
    LABEL
      COLOR 132 31 31
      SHADOWCOLOR 218 218 218
      SHADOWSIZE 2 2
      TYPE TRUETYPE
      FONT arial-bold
      SIZE 12
      ANTIALIAS TRUE
      POSITION CL
      PARTIALS FALSE
      MINDISTANCE 300
      BUFFER 4
    END # end of label
  END # end of class
END # States label layer ends here
# End of LAYER DEFINITIONS -------------------------------

END # end of map file


__________________________________________________
Do You Yahoo!?
Download the latest ringtones, games, and more!
http://sg.mobile.yahoo.com



More information about the MapServer-users mailing list