Opened 19 years ago

#1167 new defect

When providing a "library" SLD, mapserver disallows any values in the STYLES parameter.

Reported by: rgould@… Owned by: mapserverbugs
Priority: high Milestone:
Component: WMS Server Version: 4.2
Severity: normal Keywords:
Cc:

Description

When I make the following request:

http://dev1.dmsolutions.ca/cgi-bin/mswms_gmap?LAYERS=park&STYLES=yellow&SLD=http://udig.refractions.net/library.sld&FORMAT=image/png&TRANSPARENT=TRUE&HEIGHT=372&REQUEST=GetMap&BBOX=-119.32401290322579,58.040122513673396,-110.33655376344083,63.824438776649174&WIDTH=578&SRS=EPSG:4326&VERSION=1.1.1

The server returns a ServiceException:

<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.0">
<ServiceException code="StyleNotDefined">
msWMSLoadGetMapParams(): WMS server error. Invalid style ((null)). Mapserver
supports only default styles and is expecting an empty string for the STYLES :
STYLES= or STYLES=,,,
</ServiceException>
</ServiceExceptionReport>


According to the SLD 1.0.0 specification, this is incorrect.

Here is the contents of library.sld:

<StyledLayerDescriptor version="1.0.0">
	<NamedLayer>
		<Name>yellow</Name>
		<UserStyle>
  			<Name>yellow</Name>
  			<Title>yellow</Title>
    			<FeatureTypeStyle>
				<Rule>
        				<PolygonSymbolizer>
          					<Fill>
            						<CssParameter name="fill">#FFFF00</CssParameter>
          					</Fill>
        				</PolygonSymbolizer>
      				</Rule>
    			</FeatureTypeStyle>
		</UserStyle>
	</NamedLayer>
</StyledLayerDescriptor>

Change History (0)

Note: See TracTickets for help on using tickets.