[mapserver-users] Reg:- Not able to show KeyMap on main page

Pericles S. Nacionales naci0002 at umn.edu
Wed May 21 11:43:07 EDT 2008


Check your IMAGEPATH and IMAGEURL...  IMAGEPATH should point to the 
local path (which is correct in your example, except it needs the ending 
slash "/").  IMAGEURL is the path relative to the web root--this is 
assuming you've defined an Alias (virtual directory) for your temp 
directory.  Since you seem to be using IIS, I'll assume your IMAGEURL is 
actually the path after "C:\Inetpub\wwwroot"...  so, your IMAGEURL is 
probably "/RoulacGIS/MapFile/tmp/"

So, IMAGEPATH is the local path (local to your server) and IMAGEURL is 
the "web path" (relative to the web server's root URL).

You can check whether the reference works or not outside of your C# 
app--just run a MapServer CGI request like this: 
This request should return your reference image.  It will not fix any C# 
related problems you may have.

I recommend that you familiarize yourself with the MapServer map file 
reference: http://mapserver.gis.umn.edu/docs/reference/mapfile

You might also want to check Jeff McKenna's MapServer User's Manual 
(which is in draft form right now): 


venkat wrote:
> Dear All,
>   I am Venkat,I am developing an web application.In that One of the 
> task is Keymap(Overviewmap).I am using C# asp.net <http://asp.net> .I 
> can able to compile my code and when i debug image path everything  is 
> correct it seems.But I am not able to see keymap on my page.Even i am 
> not getting error. I am sending attachment.Anyone  can help me.
> 1) C# code :-
>             referenceMapObj referenceMap = map.reference;
>             imageObj ReferenceImg = map.drawReferenceMap();
>             imgOver.ImageUrl = ReferenceImg.ToString(); //image button 
> iam trying to show map on imagebutton(is there any otherway?)
> 2) Mapfile Code
>    imagepath "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp"
>    imageurl "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp"
>    IMAGE "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp\KeyMap.png"
>    EXTENT -180 -90 180 90
>   COLOR -1 -1 -1
>   OUTLINECOLOR 255 0 0
>   SIZE 120 90     
> I am waiting for great response.
> Advanced Thanks.
> Thanks and Regards
> Venkat.
> ------------------------------------------------------------------------
> ------------------------------------------------------------------------
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

More information about the mapserver-users mailing list