Re: [mapserver-users] Re: Styling a mapfile with SLD?
On 02/06/2010 9:01 AM, Rahkonen Jukka wrote: Yewondwossen Assefa wrote: On 02/06/2010 2:39 AM, paalkr wrote: Hi! Thanks! I really don't understand how that poorly formatted SLD slipped trough the oxygen XML editor, obviously there are many close-tags that misses the backslash. Do you know if there is a ticket regarding the lack of error messages when MapServer fails to either pick up or parse a SLD document? If not I think that I will write one, and encourage one of my colleagues to have a look at the source and maybe write a patch for it. There is an ol one http://trac.osgeo.org/mapserver/ticket/1471 that I just updated. The errors are trapped but at this point we let the WMS request succeed without the SLD. I believe the correct way would be to return an exception. This needs some consideration. Think about an end user who is using somew ready made application which is set to get styles from an external SLD. Now if this SLD gets broken, which would you prefer as an user: a correct exception without a map, or a map which may have wrong styling? I would take the map. -Jukka Rahkonen- I guess it is debatable. I have not seen something in the specs re. this issue. I will send a note to wms-dev list at OGC to see if there is something in the specs that deals with this issue. best regards, -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Styling a mapfile with SLD?
Yewondwossen Assefa wrote: > On 02/06/2010 2:39 AM, paalkr wrote: > > Hi! > > > > Thanks! I really don't understand how that poorly formatted > SLD slipped > > trough the oxygen XML editor, obviously there are many > close-tags that > > misses the backslash. > > > > Do you know if there is a ticket regarding the lack of > error messages when > > MapServer fails to either pick up or parse a SLD document? > If not I think > > that I will write one, and encourage one of my colleagues > to have a look at > > the source and maybe write a patch for it. > > > > > There is an ol one > http://trac.osgeo.org/mapserver/ticket/1471 that I > just updated. The errors are trapped but at this point we let the WMS > request succeed without the SLD. I believe the correct way > would be to > return an exception. This needs some consideration. Think about an end user who is using somew ready made application which is set to get styles from an external SLD. Now if this SLD gets broken, which would you prefer as an user: a correct exception without a map, or a map which may have wrong styling? I would take the map. -Jukka Rahkonen- ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Styling a mapfile with SLD?
On 02/06/2010 2:39 AM, paalkr wrote: Hi! Thanks! I really don't understand how that poorly formatted SLD slipped trough the oxygen XML editor, obviously there are many close-tags that misses the backslash. Do you know if there is a ticket regarding the lack of error messages when MapServer fails to either pick up or parse a SLD document? If not I think that I will write one, and encourage one of my colleagues to have a look at the source and maybe write a patch for it. There is an ol one http://trac.osgeo.org/mapserver/ticket/1471 that I just updated. The errors are trapped but at this point we let the WMS request succeed without the SLD. I believe the correct way would be to return an exception. best regards, - Regards, Pål Kristensen -- Assefa Yewondwossen Software Analyst Email: yass...@dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Re: Styling a mapfile with SLD?
Hi, > Do you know if there is a ticket regarding the lack of error messages when > MapServer fails to either pick up or parse a SLD document? If not I think > that I will write one, and encourage one of my colleagues to have a look at > the source and maybe write a patch for it. if you enable debugging for the mapfile and layer that should use an sld document/url, I think you will get errors in the debug log. At least with recent versions of mapserver. Cheers, Michael > > - > > Regards, > Pål Kristensen > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Styling-a-mapfile-with-SLD-tp5126381p5129506.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > -- ~ Aufwind durch Wissen! Qualifizierte Open Source Schulungen bei der http://www.foss-academy.eu/ ~ --- Michael Schulz msch...@webgis.de in medias res Gesellschaft für Informationstechnologie mbH Schwimmbadstraße 2 D-79100 Freiburg i. Br. Tel: +49 (0)761 705798-102 Tel: +49 (0)761 705798-0 Fax: +49 (0)761 705798-09 http://www.webgis.de / http://www.zopecms.de -- Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Re: Styling a mapfile with SLD?
Hi! Thanks! I really don't understand how that poorly formatted SLD slipped trough the oxygen XML editor, obviously there are many close-tags that misses the backslash. Do you know if there is a ticket regarding the lack of error messages when MapServer fails to either pick up or parse a SLD document? If not I think that I will write one, and encourage one of my colleagues to have a look at the source and maybe write a patch for it. - Regards, Pål Kristensen -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Styling-a-mapfile-with-SLD-tp5126381p5129506.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users