Skip To Content

WMS Styled Layer Descriptor (SLD) samples

In this topic

The following SLD samples are available on the public server sampleserver1.arcgisonline.com. Their purpose is to help you understand how WMS services work with external SLD resources.

Each sample has a corresponding SLD XML file accessible through the URL http://sampleserver1.arcgisonline.com/arcgis/wms/slds/<file_name>.xml to mimic an external SLD XML resource from a client. Each sample also has a WMS GetMap request, which requests a public WMS service (also on sampleserver1.arcgisonline.com) to render the map using a style defined in the external SLD resource.

All SLD samples below are designed and created for a public WMS service called ESRI_StatesCitiesRivers_USA, which can be accessed through the URL http://sampleserver1.arcgisonline.com/arcgis/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/WMSServer?request=GetCapabilities&service=WMS. To use the samples, you can either click the GetMap request link or copy the request string and open it in a browser.

To view the content of a sample SLD file, directly access the XML through the provided URL. Alternatively, you are free to download any of the sample SLD XML files below, modify them, and expose them again through a public URL so that you can request the ESRI_StatesCitiesRivers_USA WMS service to render the map using your own SLD style.

point_pointSymbolizer

point_propertyIsEqualTo

point_propertyIsNotEqualTo

point_propertyIsLike

point_not

point_bbox

point_within

polyline_lineSymbolizer

polygon_polygonSymbolizer

polygon_textSymbolizer

polygon_propertyIsEqualTo

polygon_propertyIsGreaterThan

polygon_propertyIsGreaterThanOrEqualTo

polygon_propertyIsLessThan

polygon_propertyIsLessThanOrEqualTo

polygon_multiple_rules

polygon_and

polygon_or

polygon_contains

polygon_crosses

polygon_disjoint

polygon_intersects

polygon_overlaps

point_pointSymbolizer

point_propertyIsEqualTo

point_propertyIsNotEqualTo

point_propertyIsLike

point_not

point_bbox

point_within

polyline_lineSymbolizer

polygon_polygonSymbolizer

polygon_textSymbolizer

polygon_propertyIsEqualTo

polygon_propertyIsGreaterThan

polygon_propertyIsGreaterThanOrEqualTo

polygon_propertyIsLessThan

polygon_propertyIsLessThanOrEqualTo

polygon_multiple_rules

polygon_and

polygon_or

polygon_contains

polygon_crosses

polygon_disjoint

polygon_intersects

polygon_overlaps