News > Styled Layer Descriptor FIles

There’s a lot of data published on hale»connect, and it’s important to us that it looks good to you. For this purpose, we’d like you to have the opportunity to publish Styled Layer Descriptors (SLDs.)

The OGC standard Styled Layer Descriptor (SLD) defines an XML format to encode cartographic rules by which to display features. It reuses the OGC standards Symbology Encoding (SE) and Filter Encoding (FE). The SLD standard extends the OGC Web Map Service (WMS). A basic WMS supports named layers and styles which do not enable end-users to define custom symbology. The SLD standard extends the WMS standard to allow users to provide styling rules in a Styled Layer Descriptor file.

The hale»connect platform enables users to provide their own layer styles, or to leverage our own, extensive library of INSPIRE Styled Layer Descriptors, and growing library of XPlanung SLDs. When you publish data on hale»connect, the data is matched against the hale»connect SLD library. SLDs are then applied if available. A default style layer is applied to all datasets for which a matching style layer does not exist. Alternatively, you can upload your own, valid SLDs. Here’s an example of a fully valid SLD file that is ready to be published:

SLD for shapefile

  <?xml version="1.0" encoding="UTF-8"?>
  <StyledLayerDescriptor
  version="1.1.0"  
  xmlns="http://www.opengis.net/sld"
  xmlns:ogc="http://www.opengis.net/ogc"
  xmlns:se="http://www.opengis.net/se"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:gml="http://www.opengis.net/gml/3.2"
  xmlns:sld="http://www.opengis.net/sld"
  xmlns:ns="http://www.esdi-humboldt.eu/hale/shp/myShapefile"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sldAll.xsd http://www.opengis.net/se http://schemas.opengis.net/se/1.1.0/FeatureStyle.xsd">
  <NamedLayer>
    <se:Name>MyShapefileLayer</se:Name>
    <UserStyle>
      <se:Name>MyStyle</se:Name>
      <se:Title>MyStyle</se:Title>
      <se:FeatureTypeStyle>
        <se:Name>Default Polygon Style</se:Name>  
        <se:FeatureTypeName>ns:myShapefile</se:FeatureTypeName>	  
          <se:Rule>
            <se:Title>Shapefile Polygons</se:Title>
            <se:PolygonSymbolizer>
              <se:Fill>
                <se:SvgParameter name="fill">#78C46E</se:SvgParameter>
                <se:SvgParameter name="fill-opacity">0.5</se:SvgParameter>
              </se:Fill>
              <se:Stroke>
                <se:SvgParameter name="stroke">#38A800</se:SvgParameter>
                <se:SvgParameter name="stroke-width">1.5</se:SvgParameter>
              </se:Stroke>
            </se:PolygonSymbolizer>
          </se:Rule>
          <se:Rule>
            <se:MaxScaleDenominator>40000</se:MaxScaleDenominator>
            <se:TextSymbolizer>
              <se:Label>
                <ogc:PropertyName>ns:name/text()</ogc:PropertyName>
              </se:Label>
              <se:Font>
                <se:SvgParameter name="font-family">Arial</se:SvgParameter>
                <se:SvgParameter name="font-size">14</se:SvgParameter>
                <se:SvgParameter name="font-style">normal</se:SvgParameter>
                <se:SvgParameter name="font-weight">bold</se:SvgParameter>
              </se:Font>
              <se:Halo>
                <se:Radius>3</se:Radius>
                <se:Fill>
                  <se:SvgParameter name="fill">#ffffff</se:SvgParameter>
                </se:Fill>
              </se:Halo>
              <se:Fill>
                <se:SvgParameter name="fill">#38A800</se:SvgParameter>
              </se:Fill>
          </se:TextSymbolizer>          
        </se:Rule>
      </se:FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

Want to learn more about publishing SLDs? We just created an SLD tutorial for users interested in creating their own SLDs for shapefile or GML. You can check it out here.

If you are interested in having us create a custom style for you, please contact support.

There’s a lot of data published on hale»connect, and it’s important to us that it looks good to you. For this purpose, we’d like you to have the opportunity to publish Styled Layer Descriptors (SLDs.)

The OGC standard Styled Layer Descriptor (SLD) defines an XML format to encode cartographic rules by which to display features. It reuses the OGC standards Symbology Encoding (SE) and Filter Encoding (FE). The SLD standard extends the OGC Web Map Service (WMS). A basic WMS supports named layers and styles which do not enable end-users to define custom symbology. The SLD standard extends the WMS standard to allow users to provide styling rules in a Styled Layer Descriptor file.

The hale»connect platform enables users to provide their own layer styles, or to leverage our own, extensive library of INSPIRE Styled Layer Descriptors, and growing library of XPlanung SLDs. When you publish data on hale»connect, the data is matched against the hale»connect SLD library. SLDs are then applied if available. A default style layer is applied to all datasets for which a matching style layer does not exist. Alternatively, you can upload your own, valid SLDs. Here’s an example of a fully valid SLD file that is ready to be published:

SLD for shapefile

  <?xml version="1.0" encoding="UTF-8"?>
  <StyledLayerDescriptor
  version="1.1.0"  
  xmlns="http://www.opengis.net/sld"
  xmlns:ogc="http://www.opengis.net/ogc"
  xmlns:se="http://www.opengis.net/se"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns:gml="http://www.opengis.net/gml/3.2"
  xmlns:sld="http://www.opengis.net/sld"
  xmlns:ns="http://www.esdi-humboldt.eu/hale/shp/myShapefile"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sldAll.xsd http://www.opengis.net/se http://schemas.opengis.net/se/1.1.0/FeatureStyle.xsd">
  <NamedLayer>
    <se:Name>MyShapefileLayer</se:Name>
    <UserStyle>
      <se:Name>MyStyle</se:Name>
      <se:Title>MyStyle</se:Title>
      <se:FeatureTypeStyle>
        <se:Name>Default Polygon Style</se:Name>  
        <se:FeatureTypeName>ns:myShapefile</se:FeatureTypeName>	  
          <se:Rule>
            <se:Title>Shapefile Polygons</se:Title>
            <se:PolygonSymbolizer>
              <se:Fill>
                <se:SvgParameter name="fill">#78C46E</se:SvgParameter>
                <se:SvgParameter name="fill-opacity">0.5</se:SvgParameter>
              </se:Fill>
              <se:Stroke>
                <se:SvgParameter name="stroke">#38A800</se:SvgParameter>
                <se:SvgParameter name="stroke-width">1.5</se:SvgParameter>
              </se:Stroke>
            </se:PolygonSymbolizer>
          </se:Rule>
          <se:Rule>
            <se:MaxScaleDenominator>40000</se:MaxScaleDenominator>
            <se:TextSymbolizer>
              <se:Label>
                <ogc:PropertyName>ns:name/text()</ogc:PropertyName>
              </se:Label>
              <se:Font>
                <se:SvgParameter name="font-family">Arial</se:SvgParameter>
                <se:SvgParameter name="font-size">14</se:SvgParameter>
                <se:SvgParameter name="font-style">normal</se:SvgParameter>
                <se:SvgParameter name="font-weight">bold</se:SvgParameter>
              </se:Font>
              <se:Halo>
                <se:Radius>3</se:Radius>
                <se:Fill>
                  <se:SvgParameter name="fill">#ffffff</se:SvgParameter>
                </se:Fill>
              </se:Halo>
              <se:Fill>
                <se:SvgParameter name="fill">#38A800</se:SvgParameter>
              </se:Fill>
          </se:TextSymbolizer>          
        </se:Rule>
      </se:FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

Want to learn more about publishing SLDs? We just created an SLD tutorial for users interested in creating their own SLDs for shapefile or GML. You can check it out here.

If you are interested in having us create a custom style for you, please contact support.

(more)