[MS4W-Users] Bls: Bls: [ms4w-users] MS4W 3.0 beta7 available for testing and feedback

Rangga Negara rkn2003 at yahoo.co.id
Sun Sep 13 18:48:35 EST 2009


ah, yeah , thanks, it really work




________________________________
Dari: Jeff McKenna <jmckenna at gatewaygeomatics.com>
Kepada: ms4w-users at lists.maptools.org
Terkirim: Minggu, 13 September, 2009 22:24:43
Judul: Re: [MS4W-Users] Bls: [ms4w-users] MS4W 3.0 beta7 available for testing and feedback

Rangga Negara wrote:
> hi everyone, i came with problem again,
> this is message
> 
> mapserv(): Web application error. Traditional BROWSE mode requires a 
> TEMPLATE in the WEB section, but none was provided
> 
> and this is my first.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/apache/htdocs/trial/peta_tab/a/view1.map">
>       <input type="hidden" name="map_web"
>              value="imagepath /ms4w/tmp/ms_tmp/">
>    </form>
>    <IMG SRC="[img]" width=700 height=300 border=0>
> </body>
> </html>
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> and this is my mapfile , i created using gix export tool
> ============================================================================
> # MapFile created with Gix Export Tool -  Sun Sep 13 10:21:53 2009
> # http://gix.sourceforge.net
> # View Date   : Sunday, September 13, 2009 10:00:10 AM
> #
> MAP
>   NAME 'View1'
>   SIZE 550 400
>   EXTENT 107.53919303 -6.97557135 107.74596325 -6.83490165
>   UNITS dd
>   RESOLUTION 72
>   CONFIG PROJ_LIB 'C:/Proj/'
>   DATAPATTERN ''
>   TEMPLATEPATTERN ''
>   SHAPEPATH 'c:\ms4w\apache\htdocs\trial\peta_tab\a\'
>   SYMBOLSET 'c:\ms4w\apache\htdocs\trial\peta_tab\a\View1.sym'
>   FONTSET 'c:\ms4w\apache\htdocs\trial\peta_tab\a\View1.fnt'
>   STATUS on
>   IMAGECOLOR 255 255 255
>   IMAGETYPE png24
>   STATUS on
>   DEBUG false
> 
>   WEB
>     MINSCALE 0
>     IMAGEPATH ''
>     IMAGEURL ''
>     LOG 'c:\ms4w\apache\htdocs\trial\peta_tab\a\View1.log'
>     METADATA
>     END #METADATA
>   END  #WEB
> 
>   REFERENCE
>     IMAGE 'c:\ms4w\apache\htdocs\trial\peta_tab\a\View1.jpg'
>     EXTENT 107.53919303 -6.97557135 107.74596325 -6.83490165
>     STATUS on
>     COLOR -1 -1 -1
>     OUTLINECOLOR 255 255 0
>     SIZE 110 120
>     #MARKER
>     #MARKERSIZE
>     #MINBOXSIZE
>     #MAXBOXSIZE
>   END  #REFERENCE
> 
>   LEGEND
>     IMAGECOLOR 255 255 255
>     OUTLINECOLOR -1 -1 -1
>     KEYSIZE 18 12
>     KEYSPACING 2 2
>     POSTLABELCACHE true
>     POSITION ll
>     LABEL
>       ANTIALIAS true
>       BACKGROUNDCOLOR 255 255 255
>       BACKGROUNDSHADOWCOLOR -1 -1 -1
>       BACKGROUNDSHADOWSIZE 2 2
>       OUTLINECOLOR -1 -1 -1
>       COLOR 0 0 0
>       FONT 'Arial-Normal'
>       SIZE 10
>       TYPE truetype
>     END
>     STATUS on
>   END  #LEGEND
> 
>   SCALEBAR
>     BACKGROUNDCOLOR 255 255 255
>     COLOR 0 0 0
>     IMAGECOLOR 255 255 255
>     INTERVALS 4
>     LABEL
>       COLOR 0 0 0
>       SIZE tiny
>       TYPE bitmap
>       ANTIALIAS true
>     END
>     OUTLINECOLOR 0 0 0
>     POSITION lr
>     POSTLABELCACHE true
>     SIZE 200 4
>     STATUS on
>     STYLE 0
>     UNITS meters
>   END   #SCALEBAR
> 
>   QUERYMAP
>     STYLE hilite
>     STATUS on
>     COLOR 255 255 0
>   END   #QUERYMAP
> 
>   LAYER  #A_region.shp
>     TRANSPARENCY 100
>     NAME 'A_region.shp'
>     METADATA
>       gix_layername        "A_region.shp"
>       gix_layerfieldnames  "NAMA_KEC|ID|DEMAND|LUAS_KM2"
>       gix_layerfieldalias  "Nama_kec|Id|Demand|Luas_km2"
>     END  #METADATA
>     TOLERANCE 3
>     TOLERANCEUNITS pixels
>     DATA 'a_region.shp'
>     HEADER 'header.html'
>     FOOTER 'footer.html'
>     LABELCACHE on
> #    TILEINDEX ''
> #    TILEITEM  ''
>     STATUS on
>     DEBUG false
>     TRANSFORM true
>     TYPE polygon
>     CLASSITEM 'NAMA_KEC'
>     CLASS
>       NAME 'Andir'
>       TEMPLATE 'template.html'
>       EXPRESSION 'Andir'
>       #RASTERFILL_STYLE_SOLID
>       STYLE
>         COLOR 192 101 73
>         BACKGROUNDCOLOR 255 255 255
>       END  #STYLE
>     END #CLASS
>     CLASS
>       NAME 'Arca Manik'
>       TEMPLATE 'template.html'
>       EXPRESSION 'Arca Manik'
>       #RASTERFILL_STYLE_SOLID
>       STYLE
>         COLOR 255 215 0
>         BACKGROUNDCOLOR 255 255 255
>       END  #STYLE
>     END #CLASS
>     CLASS
>       NAME 'Astana Anyar'
>       TEMPLATE 'template.html'
>       EXPRESSION 'Astana Anyar'
>       #RASTERFILL_STYLE_SOLID
>       STYLE
>         COLOR 189 183 107
>         BACKGROUNDCOLOR 255 255 255
>       END  #STYLE
>     END #CLASS
>    END  #LAYER
> 
> OUTPUTFORMAT
>    NAME png24
>    DRIVER "GD/PNG"
>    MIMETYPE "image/png"
>    IMAGEMODE RGBA
>    EXTENSION png
>    TRANSPARENT on
> END  #OUTPUTFORMAT
> 
> END  #MAP

Hello,

You are missing a template file, which you refer to in the WEB object of 
your mapfile, such as:

   WEB
     ...
     TEMPLATE "../htdocs/viewer-template.html"
     ...
   END

If you want to see this in action, download the MS4W addon package 
"MapServer Itasca Demo Application" from the MS4W downloads page.

-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



      Wajib militer di Indonesia? Temukan jawabannya di Yahoo! Answers! http://id.answers.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ms4w-users/attachments/20090913/9dc754fa/attachment.htm 


More information about the MS4W-Users mailing list