[postgis] About PostGIS & MapServer
jrom
jga at scot.cnes.fr
Fri Mar 8 04:53:54 PST 2002
> I'd like to ask you about my problem using MapServer, which I
couldn't
> get any image instead of no errors in Mapserver Log.
>
> My current PC environment for MapServer with PostGIS.
>
> OS: Win NT 4.0 Server SP6a
> Web Server : Apache
> PostgreSQL 7.1.2 on Cygwin
> PostGIS 6.0.2 on Cygwin
> Mapserver 3.5 Win32 binaries, not Cygwin's
> Apache 1.3.22(Win32)... I couldn't run MapServer on IIS 4.0.
>
> In html file's, a part calling mapserver is as follows.
>
> <img border="1"
> src="/cgi-bin/mapserv.exe?map=D:\Program Files\Apache
> Group\Apache\htdocs\ms_demo\tokyo\postgis.map&mode=map">
>
> My MapServer's map file is as follows.
>
> LAYER
> CONNECTIONTYPE postgis
> NAME "aza"
> CONNECTION "user=Administrator dbname=tokyo host=ono-hi
> password=xxxx"
> DATA "the_geom from stream"
> TYPE POLYGON
> STATUS ON
> CLASS
> EXPRESSION ([gid] < 500)
> OUTLINECOLOR 10 0 40
> COLOR 255 22 220
> END
> METADATA
> WMS_TITLE "aza"
> WMS_ABSTRACT "aza"
> END
> END
> END
Hi,
I think you just missed to set the name of the layers to draw in your mapserver
request. You should have something like this:
<img border="1" src="/cgi-bin/mapserv.exe?map=D:\Program Files\Apache
Group\Apache\htdocs\ms_demo\tokyo\postgis.map&mode=map;layer=aza">
^^^^^^^^^
Or leave your mapserver call as you do but change the STATUS ON in your aza LAYER
to STATUS DEFAULT
Regards
jrom
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Tiny Wireless Camera under $80!
Order Now! FREE VCR Commander!
Click Here - Only 1 Day Left!
http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/PhFolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
postgis-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the postgis-users
mailing list