[Mapserver-users] mapserver 4 - postgis problem

Pericles Nacionales nacional at cbs.umn.edu
Fri Mar 26 08:46:00 PST 2004


Check your web server's error log and see if there's anything related to
MapServer.  Chances are it says it can't find "/tmp/someimage.png" or
something similar.  Make sure your IMAGEPATH  points to the proper
absolute path to your temp directory and the IMAGEURL points to the proper
path relative to your web server's root.  Also, make sure to append the
extra slash at the end of the path.
Ex:
IMAGEPATH '/data/tmp/'
IMAGEURL '/tmp/'

The path "/tmp/" should be referenced as an "Alias" (Virtual Directory) in
your web server.  If you don't want (or don't know how) to create an
alias, just create the temp directory under your "htdocs" (or "wwwroot",
in IIS) directory.  Then you specify the IMAGEPATH and IMAGEURL like this:
IMAGEPATH '/var/www/localhost/htdocs/tmp/' # change to your real path
IMAGEURL '/tmp/'

You do need to make sure that the web server user account can write to
this temp directory (and not anywhere else).

I hope this helps.
-Perry N.


On Fri, 26 Mar 2004, Stefan Donath wrote:

> hi list,
>
> i am trying to view postgis 0.8.1 data with mapserver 4.0 but there is only
> a big black page with a little red x in the upper left corner    !!! :-(( !!!
>
> this is the layer section of my map file:
>
> LAYER
>   CONNECTIONTYPE postgis
>   NAME "owt_orte"
>   CONNECTION "user=postgres dbname=test2 host=128.xxx.x.x"
>   DATA "the_geom from owt_orte"
>   STATUS ON
>   TYPE POLYGON
>   CLASS
>       NAME "orte"
>       COLOR 255 0 0
>   END
> END
>
> what's wrong with that (i am totally new with both postgis AND mapserver!!)?
> anybody out there with ideas???
>
> thanx, stefan.
>
> --
> +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
> 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>




More information about the MapServer-users mailing list