1

Topic: dist_point attributes

Hi,

I'm looking for a definitive list of the attributes for Distribution Layer Style "dist_point"   I'm trying to find some colours that work well on our maps but most that I try aren't recognised.

Thanks

Dave

2

Re: dist_point attributes

Hi Dave,
I'm using the BRC live warehouse and can get red, blue, green, black, grey and yellow to work (format is dist_point_red etc).

I find the grey doesn't show well but the rest work fine.

I believe the layers are different on the test warehouse so it might take a little experimentation to find the ones that work.

Hope this helps,
Fiona

Fiona McCrory
CEDaR Website Officer
www.nmni.com/cedar

3

Re: dist_point attributes

Thanks, Fiona.

That is all of them defined on warehouse1 except for one I see called dist_point_red_transparent. On testwarehouse there are only blue, green and red.

We can create all sorts of styles in GeoServer. See the Styled Layer Descriptor documentation

By way of example, the definition of dist_point_blue is as follows

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc"
  xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">
  <NamedLayer>
    <Name>Default Polygon</Name>
    <UserStyle>
      <Title>Distribution Point Blue</Title>
      <Abstract>A blue square or point.</Abstract>
      <FeatureTypeStyle>
        <Rule>
          <Title>Polygon</Title>
          <PointSymbolizer>
            <Graphic>
              <Mark>
                <WellKnownName>circle</WellKnownName>
                <Fill>
                  <CssParameter name="fill">#0000FF</CssParameter>
                </Fill>
              </Mark>
              <Size>6</Size>
            </Graphic>
          </PointSymbolizer>
          <PolygonSymbolizer>
            <Fill>
              <CssParameter name="fill">#0000FF</CssParameter>
            </Fill>
            <Stroke>
              <CssParameter name="stroke">#000000</CssParameter>
              <CssParameter name="stroke-width">1</CssParameter>
            </Stroke>
          </PolygonSymbolizer>          
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

Minor note. Versions of GeoServer currently installed are 2.1.3 on Testwarehouse and 2.1.2 on Warehouse1.

So, get creative, Dave!

Jim Bacon.