[Mapserver-users] Unable to display map

Eduardo Patto Kanegae eduardo at consultoria.eti.br
Fri Mar 19 06:24:21 EST 2004


OK. it show that your MAP_STATUS is set to ON, so to display it at the 
browser you should
at the reserved word [img] inside your template file like this:

...
The map:<input type="image" name="img" src="[img]" >
...

;-)

Pramila R Gawas escreveu:

> Thanks for immediate replying
>
> actually if i just try to display the static map without webaddress, 
> it works fine.
> but when i try to display it using web address, it creates a png image 
> in ~user/tmp file.. doesn't display in browser.
> Eduardo Patto Kanegae wrote:
>
>> Did you check if your shapefile has this extent value? EXTENT -180 
>> -90 180 90
>>
>> A good way to check is to use "shpdump" tool from ShapeLib ( 
>> http://shapelib.maptools.org )
>>
>> $ shpdump myshapefile.shp > mydumpfile.txt
>>
>> open the TXT file and look for line 3 and 4.
>>
>> that's all u need.
>>
>> best.
>>
>> Eduardo Patto Kanegae
>> http://www.consultoria.eti.br
>>
>> ## Projeto MapServer Brasil - http://mapserver.cttmar.univali.br ##
>> ***************************************
>> ***Fim da Mensagem / End of Message ***
>> ***************************************
>>
>>
>>
>> Pramila R Gawas escreveu:
>>
>>> Dear MapServer experts,
>>>
>>> could you please help me with following problem?
>>>
>>> I'm trying to display data strored in shape file, but I allways get a
>>> blank map (image icon).
>>> The map file is as follows :
>>> NAME WORLD
>>> SIZE 500 650
>>> EXTENT -180 -90 180 90
>>> #UNITS METERS
>>> SHAPEPATH "/localhostname/user/abc/public_html/worldmap/data"
>>> STATUS ON
>>> #IMAGETYPE png
>>>
>>> LAYER
>>> NAME world
>>> TYPE POLYGON
>>> DATA world
>>> CLASS
>>> COLOR 181 181 181
>>> OUTLINECOLOR 50 10 100
>>> END
>>> STATUS DEFAULT
>>> END
>>>
>>> PROJECTION
>>> "proj=latlong"
>>> END
>>>
>>> WEB
>>> TEMPLATE demo.html
>>> IMAGEPATH "set in init.html"
>>> IMAGEURL "set in init.html"
>>> METADATA
>>> WMS_ONLINERESOURCE "http://localhost/~abc/init.html"
>>> END
>>> END
>>> END
>>>
>>>
>>>
>>> Could anybody get throught this problem.
>>>
>>>
>>> thanks
>>> pramila
>>>
>>>
>>>
>>> _______________________________________________
>>> Mapserver-users mailing list
>>> Mapserver-users at lists.gis.umn.edu
>>> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>>
>>>
>>
>
>
>
>
>

-- 
Eduardo Patto Kanegae
http://www.consultoria.eti.br

## Projeto MapServer Brasil - http://mapserver.cttmar.univali.br ##
***************************************
***Fim da Mensagem / End of Message ***
***************************************




More information about the mapserver-users mailing list