[maplab-users] Re: Blank map ROSA/html

Brian briand0405 at gmail.com
Fri Jan 27 08:17:59 EST 2006


Nahum, thanks for the reply.
Directory structure for map and shape files is...
/ - contains mapfile
/maps/etc/ - contains symbols.sym and fonts.txt
/maps/bedfordshp/ - contains esri shape files
/maps/images/ - contains supporting images

the last few lines in my Apache error log after trying to view map
with mapbrowser...

D:/ms4w/Apache/htdocs/favicon.ico
File does not exist:
D:/ms4w/apps/maplab-2.2.1/htdocs/mapbrowser/a_pixel.gif, referer:
http://local:8010/maplab/mapbrowser/toolbar.phtml?sid=43d9868959758
File does not exist:
D:/ms4w/apps/maplab-2.2.1/htdocs/mapbrowser/a_pixel.gif, referer:
http://localhost/maplab/mapbrowser/toolbar.phtml?mapbrowser_menu=&sid=43d9868959758
File does not exist:
D:/ms4w/apps/maplab-2.2.1/htdocs/mapbrowser/a_pixel.gif, referer:
http://localhost/maplab/mapbrowser/toolbar.phtml?mapbrowser_menu=&sid=43d9868959758

Here is the mapfile...
MAP
  NAME "bedford09132005"
  STATUS ON
  # Extent based on full extent of QGIS view
  EXTENT 988516 142838 1041349.637 177561
  # Map image size. Change size as desired
  SIZE 400 300
  SHAPEPATH "./bedfordshp"
  SYMBOLSET "./etc/symbols.sym"
  FONTSET "./etc/fonts.txt"
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255
  UNITS METERS
  #
  # Start of web interface definition. Only the TEMPLATE parameter
  # must be specified to display a map. See Mapserver documentation
  #
  WEB
    # HEADER
    # TEMPLATE
    # FOOTER
    #MINSCALE
    #MAXSCALE
    # Set IMAGEPATH to the path where mapserver should
    # write its output
    IMAGEPATH "/ms4w/tmp/ms_tmp/"
    # Set IMAGEURL to the url that points to
    IMAGEURL "/ms_tmp/"
  END
  # Projection definition
  # Projections are not currenlty supported. If desired, add your own
  # projection information based on Mapserver documentation.
  #
  REFERENCE
    STATUS ON
    IMAGE "./images/keymap.png"
    SIZE 120 90
    EXTENT 997805.087700 144416.519300 1041349.637600 175983.068069
    COLOR -1 -1 -1
    OUTLINECOLOR 255 0 0
    MINBOXSIZE 3
    MAXBOXSIZE 0
    MARKER 0
    MARKERSIZE 0
  END
# Start of querymap object
#
  QUERYMAP
    STATUS OFF
    SIZE -1 -1
    COLOR 255 0 0
    STYLE HILITE
  END

#
# Start of OutputFormat object
#
  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE PC256
    TRANSPARENT FALSE
  END

#
  LAYER
    NAME "bedford09132005"
    STATUS ON
    DATA "bedford09132005"
    TYPE RASTER
    CLASS
      NAME "BEDFORD09132005"
    # TEMPLATE
    END
  END
END


On 1/27/06, Nahum Castro González <ncastrog at guanajuato.gob.mx> wrote:
> >
> Can you send the ofendig map file? and review, please the apache error-log
> file
>
> --
> Nahum



More information about the Maplab-users mailing list