[Chameleon] Projection error

Hugo Girard hgirard at cgq.qc.ca
Wed Mar 15 09:23:36 EST 2006


Here my error:

Warning: [MapServer Error]: _msProcessAutoProjection(): WMS/WFS AUTO PROJECTION must be in the format 'AUTO:proj_id,units_id,lon0,lat0' (got ''). in C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on line 215

Warning: Failed to open map file C:/ms4w/apps/ChameleonApp/map/Saguenay.map in C:\ms4w\apps\chameleon\htdocs\common\wrapper\map_session.php on line 215

Fatal error: Call to a member function on a non-object in C:\ms4w\apps\chameleon\htdocs\widgets\KeyMap\KeyMap.widget.php on line 197

And here my .map

MAP
  NAME "Saguenay"
  STATUS ON
  EXTENT 254050.0287 5307773.3462695 369707.040008 5394516.1047505 
  SIZE 400 300
  SHAPEPATH "../data"
  IMAGETYPE png
  IMAGECOLOR 255 255 255
  CONFIG "PROJ_LIB" "C:/ms4w/proj/"
  UNITS METERS  
  WEB
    IMAGEPATH "C:/mapservertmp/"
    IMAGEURL "http://localhost/mapservertmp/"
    TEMPLATE "data/template1.html"
    METADATA
    END
  END
  REFERENCE
    STATUS ON
    IMAGE "C:/ms4w/apps/ChameleonApp2/htdocs/images/Saguenay.png"
    SIZE 120 90 
    EXTENT 254050.0287 5328812.860403 369707.040008 5373476.590621 
    COLOR -1 -1 -1
    OUTLINECOLOR 255 0 0
    MINBOXSIZE 3
    MAXBOXSIZE 0
    MARKER 0
    MARKERSIZE 0
  END
  LEGEND
    STATUS ON
    IMAGECOLOR 255 255 255
    TRANSPARENT ON
    POSITION LL
    KEYSIZE 18 12 
    KEYSPACING 5 5 
    LABEL
      TYPE BITMAP
      SIZE MEDIUM
      OFFSET 0 0 
      BUFFER 0
      MINDISTANCE -1
      MINFEATURESIZE -1
      COLOR 0 0 150
      PARTIALS TRUE
      FORCE FALSE
    END
  END
  SCALEBAR
    STATUS ON
    COLOR 255 255 255
    OUTLINECOLOR 0 0 0
    BACKGROUNDCOLOR 0 0 0
    IMAGECOLOR 255 255 255
    TRANSPARENT ON
    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
  OUTPUTFORMAT
    NAME "png"
    MIMETYPE "image/png"
    DRIVER "GD/PNG"
    EXTENSION "png"
    IMAGEMODE PC256
    TRANSPARENT FALSE
  END
  OUTPUTFORMAT
    NAME "jpeg"
    MIMETYPE "image/jpeg"
    DRIVER "GD/JPEG"
    EXTENSION "jpg"
    IMAGEMODE PC256
    TRANSPARENT FALSE
    FORMATOPTION    "QUALITY=75"
  END
  OUTPUTFORMAT
    NAME "GTiff"
    MIMETYPE "image/tiff"
    DRIVER "GDAL/GTiff"
    EXTENSION "tif"
    IMAGEMODE RGB
    TRANSPARENT FALSE
  END
  OUTPUTFORMAT
    NAME "pdf"
    MIMETYPE "application/x-pdf"
    DRIVER "pdf"
    EXTENSION "pdf"
    IMAGEMODE PC256
    TRANSPARENT FALSE
    FORMATOPTION    "OUTPUT_TYPE=RASTER"
  END
  LAYER
    NAME "Fjord"
    STATUS DEFAULT
    DATA "data/Fjord"
    TYPE POLYGON
    UNITS METERS
    SIZEUNITS PIXELS
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    PROJECTION
    "proj=tmerc"
    "lat_0=0"
    "lon_0=-70.5"
    "k=0.999900"
    "x_0=304800"
    "y_0=0"
    "ellps=GRS80"
    "datum=NAD83"
    "units=m"
    "no_defs"
    END
    METADATA
      "DESCRIPTION"    "Fjord du Saguenay"
    END
    CLASS
      NAME "Fjord du Saguenay"
      STYLE
        SYMBOL 0
        COLOR 0 0 255
      END
    END
  END
  PROJECTION
    ""
  END
  LAYER
    NAME "Routes"
    STATUS DEFAULT
    DATA "data/Routes"
    TYPE LINE
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    CLASS
      NAME "Routes du Saguenay"
      STYLE
        SYMBOL 0
        COLOR 195 158 0
      END
    END
  END
  LAYER
    NAME "Secteurs"
    STATUS DEFAULT
    DATA "data/Secteurs"
    TYPE LINE
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    CLASS
      NAME "Secteurs du Fjord"
      STYLE
        SYMBOL 0
        COLOR 255 0 0
      END
    END
  END
  LAYER
    NAME "Anses"
    STATUS DEFAULT
    DATA "data/Anses"
    TYPE POINT
    TOLERANCE 0
    TOLERANCEUNITS PIXELS
    CLASS
      NAME "Anses"
      STYLE
        SYMBOL 0
        COLOR 0 0 0
        SIZE 10
      END
    END
  END
END
 Plz help me !!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20060315/1eec00f6/attachment-0001.html


More information about the Chameleon mailing list