[maplab-users] Only other mapfiles cant open only the tutorial map file

Christopher R. Thorne cthorne at dmsolutions.ca
Thu Sep 30 16:59:11 EDT 2004


Issac,
what project is your data in? what is the proj4 epsg code you plan to us?

Your EXTENT object is it the right coordinates for the projection you 
are using?

Make sure when you define the extent of your map that the coordinates 
are ordered. min x, min y, max x, max y.

It would also help you that you define your projection in your mapfile.

MAP
....
   # Lat/Long projection
   PROJECTION
     "init=epsg:4326"
   END
   LAYER
     ....
   END
....
END #End of Mapfile

Chris

ISAAC KWADWO NTI wrote:

> Hello,
> 
> I am using maplab and it is so nice and easy to use.I have written some 
> mapfiles but the maplab cant open it.I shows all the other features with 
> the exception of the display of the map itself, but the tutorial mapfile 
> is working perfectly.
> 
> I would like to know if there is any idea of viewing the map or if there 
> is other things I have to do.Need help.Below is an example of my mapfile 
> 

-- 
---------------------
Christopher R. Thorne
GIS Product Specialist,
DM Solutions Group Inc.

http://www.dmsolutions.ca
Email: cthorne at dmsolutions.ca
Phone: (613) 565-5056 ext.22
Fax :  (613) 565-0925
-------------- next part --------------
#
# Start of german.map file
#
#

MAP
  NAME "GERMAN"
  STATUS ON
  EXTENT -2200000 -712631 3072800 3840000
  SIZE 400 300
  SHAPEPATH "./data"
  SYMBOLSET "./etc/symbols.sym"
  FONTSET "./etc/fonts.txt"
  IMAGETYPE PNG
  IMAGECOLOR 255 255 255
  UNITS METERS
  #
  # Start of web interface definition
  #
  WEB
  MINSCALE 2e+06
  MAXSCALE 5e+07
  #
    # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
    # of the drive where the .MAP file resides.
    #
    IMAGEPATH "/ms4w/tmp/ms_tmp/"
    IMAGEURL "/ms_tmp/"
  END
  #
  # Start of reference object (keymap)
  #
  # REFERENCE
    # STATUS ON
    # IMAGE "images/keymap.png"
    # SIZE 100 75
    # EXTENT -2.2e+06 -712631 3.0728e+06 3.84e+06
    # 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 legend object
  #
  LEGEND
    STATUS ON
    IMAGECOLOR 255 255 255
    POSITION LL
    KEYSIZE 18 12
    KEYSPACING 5 5
    TEMPLATE "ttt"
    LABEL
      TYPE BITMAP
      SIZE MEDIUM
      OFFSET 0 0
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 89
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  #
  # Start of scalebar object
  #
  SCALEBAR
    STATUS ON
    COLOR 255 255 255
    OUTLINECOLOR 0 0 0
    BACKGROUNDCOLOR 0 0 0
    IMAGECOLOR 255 255 255
    UNITS KILOMETERS
    INTERVALS 5
    SIZE 150 5
    STYLE 0
    POSITION LL
    LABEL
      TYPE BITMAP
      SIZE SMALL
      OFFSET 0 0
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 0
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  #
  # Start of OutputFormat object
  #
  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE PC256
    TRANSPARENT FALSE
  END
  #
  # Start of layer definitions
  #
  LAYER
    NAME "deu_city"
    STATUS ON
    DATA "deu_city"
    TYPE POINT
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    METADATA
    "DESCRIPTION" "German Cities"
    END
  END # Layer
END # MAPFILE


More information about the Maplab-users mailing list