Hi, Can anyone help me troubleshoot why this doesn't return a legend graphic?
http://giswebservices.massgis.state.ma.us/geoserver/wms?VERSION=1.1.0&RE QUEST=GetLegendGraphic&LAYER=massgis:DCR.ROADS_TRAILS_POINT&SLD=http://m aps.massgis.state.ma.us/dcr/trails/sld/DCR.ROADS_TRAILS_POINT--Type_Max_ 18000.sld.xml&WIDTH=16&HEIGHT=16&FORMAT=image/png It returns a file called "wms" that contains this error message: <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1" > <ServiceException> org.xml.sax.SAXParseException: Content is not allowed in prolog. org.xml.sax.SAXParseException: Content is not allowed in prolog. Content is not allowed in prolog. </ServiceException></ServiceExceptionReport> The layer massgis:DCR.ROADS_TRAILS_POINT and the SLD file http://maps.massgis.state.ma.us/dcr/trails/sld/DCR.ROADS_TRAILS_POINT--T ype_Max_18000.sld.xml work fine in a GetMap request [see http://maps.massgis.state.ma.us/dcr/trails/DCR_RoadTrail12.html - you need to zoom in to see the point layer]. Any idea why I'm not getting a legend image? The URL looks like the URLs I've seen on the web and in other people's emails to this group as far as I can tell. If I remove the &SLD=... portion of the URL it works (returns a simple default black dot legend). And I've had no problem getting legends with &STYLE=... where the SLD file resides inside GeoServer as opposed to being a file on the web. (note: the server is GeoServer). Thanks a lot, David ||||||| David Kimball ||||||| GIS Specialist ||||||| MA Department of Conservation and Recreation ||||||| http://www.mass.gov/dcr/stewardship/gis/ ||||||| [email protected] ||||||| 617.626.1447 phone ||||||| 617.626.1349 fax _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
