[mapserver-users] Error Handling for Layers?
C F
gis_consultant at hotmail.com
Mon Aug 19 11:22:58 PDT 2002
Oops, please disregard to the last portion of my post. I think I had a
momentary lapse of brain power. I remembered after sending it that I can
draw layers in PHP Mapscript one-by-one from the mapfile (without having to
manually set every layer property). However, I guess the question still
remains, will layer errors be trappable/recoverable?
In case you're wondering why I don't just try it for myself.... it's because
I don't have access to my app right now :) But I will try it and post the
results if I don't get any responses.
Thanks
>From: "C F" <gis_consultant at hotmail.com>
>To: mapserver-users at lists.gis.umn.edu
>Subject: [mapserver-users] Error Handling for Layers?
>Date: Mon, 19 Aug 2002 11:05:50 -0600
>
>Hi,
>I'm certain this must've been discussed before, but I've searched and
>searched the archives and came up with nothing...
>I'm using Mapserver 3.6.1 and with PostGIS. Is there any way to recover
>from an error in a layer? Right now, it appears that if, for whatever
>reason, one of your visible layers was not available during a request, the
>whole thing blows up and you get no map at all. My thinking is that the
>rest of the layers shouldn't get the shaft just because one layer couldn't
>get its act together. Mapguide has a nice feature like this where it still
>returns a map, but only that one layer doesn't get rendered and a little
>red 'X' shows up next it in the legend indicating that it has an error.
>I'd be interested to hear about both raw Mapserver/Mapfile implementation
>as well as Mapscript. Since I may be using either/or.
>
>Right now, the only solution I see is using Mapscript (PHP in my case) to
>manually loop through each layer and setting every single possible property
>and perform the draw operation and trap errors (totally replace the
>mapfile).... which is fine with me, it just seems like an awful lot of work
>to set up PHP to replicate all setting available in the Mapfile (symbology,
>scales, classes, labeling, etc, etc). Am I wrong?
>
>Thanks!
>
>
>_________________________________________________________________
>MSN Photos is the easiest way to share and print your photos:
>http://photos.msn.com/support/worldwide.aspx
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
More information about the MapServer-users
mailing list