[Chameleon] Weird error !!!

Jeff McKenna jmckenna at dmsolutions.ca
Wed Mar 15 09:09:26 EST 2006


Hi Hugo,

The "Important Notes" section of the projection page may be of help to 
you: http://mapserver.gis.umn.edu/docs/reference/mapfile/projection

I see that all of your data is in the same projection, so i would remove 
all of your projection objects from the mapfile and retry.

If that displays a map, then you have a problem locating your epsg file 
- do as Bart said and check for the PROJ_LIB variable in your phpinfo 
output (look on the localhost opening page for a link to a phpinfo).

And please respond to the mailing list always, thanks.

jeff



Hugo Girard wrote:
> Hi Jeff
>       My Proj Library is correctly installed. Can you help me plz!! Here 
> my code
> 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
>  UNITS METERS
>  WEB
>    IMAGEPATH "C:/mapservertmp/"
>    IMAGEURL "http://localhost/mapservertmp/"
>    TEMPLATE "data/template1.html"
>    METADATA
>    END
>  END
>  REFERENCE
>    STATUS ON
>    IMAGE "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
>    "init=espg:32187"
>    END
>    METADATA
>      "DESCRIPTION"    "Fjord du Saguenay"
>    END
>    CLASS
>      NAME "Fjord du Saguenay"
>      STYLE
>        SYMBOL 0
>        COLOR 0 0 255
>      END
>    END
>  END
>  PROJECTION
>    "init=espg:32187"
>  END
>  LAYER
>    NAME "Routes"
>    STATUS DEFAULT
>    DATA "data/Routes"
>    TYPE LINE
>    TOLERANCE 0
>    TOLERANCEUNITS PIXELS
>    PROJECTION
>      "init=espg:32187"
>    END
>    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
>    PROJECTION
>      "init=espg:32187"
>    END
>    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
>    PROJECTION
>      "init=espg:32187"
>    END
>    CLASS
>      NAME "Anses"
>      STYLE
>        SYMBOL 0
>        COLOR 0 0 0
>        SIZE 10
>      END
>    END
>  END
> END
> 
>  ----- Original Message -----  From: Eijnden, B. van den (Bart)
>  To: 'Hugo Girard' ; chameleon at lists.maptools.org
>  Sent: Wednesday, March 15, 2006 1:26 AM
>  Subject: RE: [Chameleon] Weird error !!!
> 
> 
>  Is your PROJ library correctly installed and configured? Do you see 
> PROJ_LIB set when you check the phpinfo output?
> 
>  Also, what PROJECTION objects do you use in your MAP file? Can you post 
> them?
> 
>  Best regards,
>  Bart
>    -----Oorspronkelijk bericht-----
>    Van: chameleon-bounces at lists.maptools.org 
> [mailto:chameleon-bounces at lists.maptools.org]Namens Hugo Girard
>    Verzonden: dinsdag 14 maart 2006 23:07
>    Aan: chameleon at lists.maptools.org
>    Onderwerp: [Chameleon] Weird error !!!
> 
> 
>    when i opened my index.phtml (Chameleon) these error appeared :
> 
>    Warning: [MapServer Error]: msProcessProjection(): no options found 
> in 'init' file 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
> 
>    plz help me !!!!
> 
>  Disclaimer 
> ************************************************************************ 
> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is 
> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis 
> hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te 
> informeren. Wij adviseren u om bij twijfel over de juistheid of de 
> volledigheid van de mail contact met afzender op te nemen. This message 
> shall not constitute any rights or obligations. This message is intended 
> solely for the addressee. If you have received this message in error, 
> please delete it and notify the sender immediately. When in doubt 
> whether this message is correct or complete, please contact the sender. 
> ************************************************************************
> 
> ----- Original Message ----- From: "Jeff McKenna" <jmckenna at dmsolutions.ca>
> To: <chameleon at lists.maptools.org>
> Sent: Wednesday, March 15, 2006 8:07 AM
> Subject: Re: [Chameleon] Weird error !!!
> 
> 
>> This error is also mentioned on the mapserver site 
>> (http://mapserver.gis.umn.edu/docs/error/proj-init-file), and there 
>> are links to other projection resources.
>>
>> jeff
>>
>>
>>
>> Hugo Girard wrote:
>>
>>> when i opened my index.phtml (Chameleon) these error appeared :
>>>  *Warning*: [MapServer Error]: msProcessProjection(): no options 
>>> found in 'init' file 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*
>>> ** *plz help me !!!!*
>>>
>>>
>>


-- 
Jeff McKenna
DM Solutions Group Inc.
http://www.dmsolutions.ca


More information about the Chameleon mailing list