please - please - can anybody shed any light on what I am doing wrong?

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Thu Nov 11 11:34:20 PST 2004


Joseph,

You DATAPATH is relative to your mapfile unless you specify it as an
absolute path. I would start there. Also if you can load Netscape then
you can right click the broken image icon and select view image and it
will display any error messages that mapserver coughs up.

-Steve

Joseph Norris wrote:

> Group,
>
> Here I am again:
>
> I have this link:
>
> http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs
> /mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map
>
> and this map file
>
> MAP
>   NAME TESTMAP
>   STATUS ON
>   EXTENT  -1375383.89811082 -7278971.22201064 16216802.1381132
> 10313214.8142134
>   IMAGETYPE PNG
>   SIZE 600 600
>   SHAPEPATH "data"
>   IMAGECOLOR 255 255 255
>
>   WEB
>     METADATA
>       "key1" "value1"
>       "key2" "value2"
>       "key3" "value3"
>       "key4" "value4"
>     END
>   END
>
>   LAYER
>     NAME "calif_co_st"
>     TYPE POLYGON
>     DATA "calif_co_st"
>     STATUS DEFAULT
>   END
>
> END
>
> I still getting nothing but this on my map ( right-click properties ):
>
> The image
> "http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdoc
> s/mco.communityservers.com/htdocs/maps/cal/cal.map&mode=map" cannot be
> displayed, because it contains errors.
>
> And yet - when I move the tests directory into my http tree like this
>
> http://mco.communityservers.com/cgi-bin/mapserv?map=/usr/local/apache/htdocs
> /mco.communityservers.com/htdocs/tests/test.map&mode=map
>
> I get what the mapserver tests are supposed to give - is there something
> about my shape files I should know about?
>
> Please - anything at all would be helpful.
>



More information about the MapServer-users mailing list