[MS4W-Users] Bls: Bls: Trs: cannot render image
Pano Voudouris
pvoudouris at gaiocorp.com
Thu Sep 3 02:34:00 EST 2009
Hi,
A couple of thoughts:-
1. Try changing the layer status from ON to DEFAULT (STATUS DEFAULT). Does it make a diffrerence?
2. What happens if you run the following directly from your browser: http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/home/mapdata/b.map <http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/home/mapdata/b.map&layers=all&mode=map> &layers=all&mode=map
Or http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/home/mapdata/b.map <http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/home/mapdata/b.map&layers=county&mode=map> &layers=county&mode=map
Or http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/home/mapdata/b.map <http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/home/mapdata/b.map&mode=map> &mode=map (this will only apply if you set the layer status to DEFAULT)
Pano
From: ms4w-users-bounces at lists.maptools.org [mailto:ms4w-users-bounces at lists.maptools.org] On Behalf Of Rangga Negara
Sent: 02 September 2009 19:42
To: David Martinez Morata
Cc: ms4w-users at lists.maptools.org
Subject: [MS4W-Users] Bls: Bls: Trs: cannot render image
oh sorry about text, but still nothing change
_____
Dari: David Martinez Morata <damarmo at gmail.com>vdsvfefe
Kepada: Rangga Negara <rkn2003 at yahoo.co.id>
Cc: Jeff McKenna <jmckenna at gatewaygeomatics.com>; ms4w-users at lists.maptools.org
Terkirim: Rabu, 2 September, 2009 21:34:55
Judul: Re: [MS4W-Users] Bls: Trs: cannot render image
TRY to write with a smaller text Please!
And try to comment (add "#" character) at the start of the "IMAGECOLOR 255 255 255" line
2009/9/2 Rangga Negara <rkn2003 at yahoo.co.id>
i already with shp2img and i got the picture,
but still in browser just white colour it the image box
_____
Dari: Jeff McKenna <jmckenna at gatewaygeomatics.com>
Kepada: ms4w-users at lists.maptools.org
Terkirim: Rabu, 2 September, 2009 20:29:27
Judul: Re: [MS4W-Users] Trs: cannot render image
Rangga Negara wrote:
> hi, i just not understand why the map cannot render
> this is my mapfile
>
> name "b"
> SIZE 600 500
> UNITS DD
> IMAGETYPE JPEG
> IMAGECOLOR 255 255 255
> SHAPEPATH "C:/ms4w/home/mapdata/"
> EXTENT -77.119900 38.791513 -76.909396 38.995109
> STATUS ON
>
> #
> # Start of web interface definition
> #
>
> WEB
> TEMPLATE '/ms4w/apache/htdocs/b.html'
> IMAGEPATH '/ms4w/tmp/ms_tmp/'
> IMAGEURL '/ms_tmp/'
> END # WEB Section
>
> #
> # Start of Layer definition
> #
> LAYER
> NAME county
> TYPE polygon
> STATUS ON
> CONNECTIONTYPE OGR
> CONNECTION "c:/ms4w/home/mapdata/county.TAB"
> CLASS
> NAME "county"
> STYLE
> COLOR 254 222 212
> OUTLINECOLOR 0 0 0
> END
> END # Class section
> END # LAYER Section
>
> END # MapFile
>
>
> ------and this is my html--------------------------------------------
> <html>
> <head> <title>MapServer First Map</title></head>
> <body>
> <form method=POST action="/cgi-bin/mapserv.exe?">
> <input type="submit" value="Click Me">
> <input type="hidden" name="map"
> value="C:/ms4w/home/mapdata/b.map&layers=all&mode=map">
> <input type="hidden" name="map_web"
> value="imagepath /ms4w/tmp/ms_tmp/">
> </form>
> <IMG SRC="[img]" width=600 height=500 border=0>
> </body>
> </html>
> -------------------------------------------------------------------------
>
> output just white colour on the image box?
Hello,
Here are my thoughts:
- use the ogrinfo commandline utility to get the extents of the TAB file
(also included in MS4W)
- use the extents from ogrinfo in the EXTENT parameter of your mapfile
- test your mapfile using the shp2img commandline utility
(http://www.mapserver.org/utilities/shp2img.html), which is included in MS4W
-jeff
--
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/
_______________________________________________
MS4W-Users mailing list
MS4W-Users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ms4w-users
_____
Coba Yahoo! Messenger 9.0 baru <http://sg.rd.yahoo.com/sg/messenger/maxwell/*http:/id.messenger.yahoo.com/> Akhirnya datang juga!
_______________________________________________
MS4W-Users mailing list
MS4W-Users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ms4w-users
--
Martinez Morata David
Thinking GIS
_____
Selalu <http://sg.rd.yahoo.com/id/messenger/trueswitch/mailtagline/*http:/id.messenger.yahoo.com/invite/> bersama teman-teman di Yahoo! Messenger
Tambahkan mereka dari email atau jaringan sosial Anda sekarang!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20090903/7ae18fb6/attachment.htm
More information about the MS4W-Users
mailing list