[Mapserver-users] help needed

Christopher R. Thorne thorne at dmsolutions.ca
Mon Oct 6 09:13:47 EDT 2003


Ronny,
Yes, the error message is a little ambiguous. From your layer 
description I am assuming that you are using php_mapscript_36.dll
If you were using php_mapscript_40.dll or higher you will need a STYLE 
object within the CLASS Object to hold your styling parameters
eg.
CLASS
      EXPRESSION 'Nakuru'
   STYLE
      OUTLINECOLOR 128 128 128
      COLOR 225 225 185
   END
END

I have a question, I noticed that you have a Metadata Object with WMS 
variables in it. Are you trying to connect to a WMS Server? If so, you 
do not have a Connection Object, that contains the location of the data 
you wish to display.

If it is local data you are using please make sure that path to your 
SHAPEPATH in your Main MAP object is defined correctly, with respect to 
the your DATA object found in this LAYER.

One last comment, I notice also that the path to your layer is not in quotes

DATA nakuru_region
should be:
DATA "nakuru_region"

I am not sure if this is the issue, but it is good practice to place 
quotes around the strings you will be passing in your mapfile.

Thanks
Chris

ronny wrote:

> am trying to draw a map but am getting: 
> 
> msDrawMap(): Image handling error. Failed to draw
> layer named 'Nakuru_region'.
> 
> i sincerely don't  know what that means since am very
> new to maps drawing and mapserver!
> 
> the layer is as follows:
> 
> LAYER
>  NAME Nakuru_region
>   TYPE POINT
>   STATUS DEFAULT
>   DATA nakuru_region
>   
>   CLASSITEM 'cty_name'
>   CLASS
>     EXPRESSION 'Nakuru'
>     OUTLINECOLOR 128 128 128
>     COLOR 225 225 185
>   END
>   CLASS # every other towns in the region
>     EXPRESSION /./ 
>     OUTLINECOLOR 128 128 128
>     COLOR 255 255 255
>   END
>   METADATA
>     WMS_TITLE "Nakuru Towns"
>     WMS_ABSTRACT "Nakuru Region shapfile."
>     WMS_SRS "EPSG:26915"
>  END
> END
> 
> am on redhat linux 8.0
> mapserver 4.0
> 
> 
> =====
> ronny
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 


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

http://www.dmsolutions.ca
email: thorne at dmsolutions.ca
Phone: (613) 565-5056 ext.22
Fax :  (613) 565-0925
------------------------------





More information about the mapserver-users mailing list