Still on Example 1.9

Lawal Olanrewaju hypery2kus at YAHOO.COM
Wed Apr 13 07:28:12 EDT 2005


The mapfile is as found below
-------------
MAP
NAME           EX1.9_
IMAGETYPE      PNG24
EXTENT        201621.496941 -294488.285333
1425518.020722 498254.511514 # LAEA
#EXTENT         -97.5 41.619778 -82.122902 49.38562 #
Geographic
SIZE           400 300
SHAPEPATH      "\ms4w\httpd.d\tutorial\data"
SYMBOLSET      "symbols/symbols35.sym"
FONTSET        "fonts/fonts.list"

WEB
  TEMPLATE  'example1-9.html'
  IMAGEPATH '/data/tmp/'
  IMAGEURL  '/tmp/'
END

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'
    SYMBOL     0
    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 # LandSat WMS map from JPL (or from USGS)
  NAME         LandSat
  TYPE         RASTER
  OFFSITE      0 0 0
  STATUS       OFF
  CONNECTIONTYPE     WMS
  #CONNECTION
"http://wms.jpl.nasa.gov/wms.cgi?REQUEST=map&LAYERS=us_landsat7&STYLES=&FORMAT=png&TRANSPARENT=true"
  CONNECTION
"http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap?ServiceName=USGS_WMS_LANDSAT7&VERSION=1.0.0&REQUEST=map&Layers=LANDSAT7&SRS=EPSG:4326&REASPECT=false&Format=png&"

  METADATA
    "wms_title" "LandSat"
    "wms_name" "us_landsat7"
    "wms_server_version" "1.0.0"
    "wms_srs" "epsg:4326"
    "wms_format" "image/png"
    #"wms_title" "US_Landsat7"
    # "wms_srs" "epsg:4326"
    # "wms_connectiontimeout" "1000"
  END

  PROJECTION
    "init=epsg:4326"
  END
END # LandSat WMS image ends here

LAYER # States line layer begins here
  NAME         states
  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
  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    255 255 255
      TYPE     TRUETYPE
      FONT     arial-bold
      SIZE     12
      ANTIALIAS    FALSE
      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


--- Ferencik Ioan <ferencik.ioan at PERSONAL.RO> wrote:
> The problem could be your IMAGEPATH and IMAGEURL
> properties from the WEB object
> try to send the map file in message
> > Hi Everyone
> > I am new to Mapserver and I have just downloaded
> the
> > Tutorial (Mapserver 4.0)
> > I could see the static map but not the dynamic
> one,
> > there was 'Submit query' displayed in the box
> where
> > the dynamic map was suppose to be displayed.
> > I have a feeling the mapfil is alright since I was
> > able to see the static map but I could not figure
> out
> > what was wrong with the html file.
> > I hope someone can help me out.
> > Best regards
> >
> > Olanrewaju Lawal
> > Institute for Soil Science and Land Evaluation
> (310)
> > University of Hohenheim
> > 70599, Stuttgart
> > Germany
> > Office. +497114593633
> > Mob.   +491632677964
> > Webpage: http://larrylaw1.tripod.com/index.htm
> >
> >
> >
> >
> >
> > Send instant messages to your online friends
> http://uk.messenger.yahoo.com
> >
>
>
>
>
> _____________________________________________
> Cinefil?Castiga o excursie la Venetia
> http://www.cineplus.ro/concurs
>

Send instant messages to your online friends http://uk.messenger.yahoo.com



More information about the mapserver-users mailing list