Skip to main content
Bumped by Community user
deleted 14 characters in body
Source Link
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" 
                       xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" 
                       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">
  <NamedLayer>
    <Name>pxs_gna_mobile_site</Name>
    <UserStyle>
      <Name>Geo_Style_pxs_gna_mobile_site</Name>
      <FeatureTypeStyle>
        <Rule>
          <Name>Geo_Rule_pxs_gna_mobile_site</Name>
          <MaxScaleDenominator>350000.0</MaxScaleDenominator>
          <PointSymbolizer>
            <Graphic>
              <ExternalGraphic>
                <OnlineResource xlink:type="simple" xlink:href="http://jb6i4.web.bcserver:22121port/geoserver/styles/MobileTower_green.png"/>
                <Format>image/png</Format>
              </ExternalGraphic>
              <Size>40</Size>
            </Graphic>
          </PointSymbolizer>
   
          <TextSymbolizer>
                   <Geometry>
  <ogc:Function name="centroid">
    <ogc:PropertyName>geom</ogc:PropertyName>
  </ogc:Function>
</Geometry>
            <Label>
              <ogc:PropertyName>candidate_code</ogc:PropertyName>
            </Label>
            <Font>
              <CssParameter name="font-family">Arial</CssParameter>
              <CssParameter name="font-size">12</CssParameter>
              <CssParameter name="font-style">normal</CssParameter>
              <CssParameter name="font-weight">bold</CssParameter>
            </Font>
            <LabelPlacement>
              <PointPlacement>
                <AnchorPoint>
                  <AnchorPointX>0.5</AnchorPointX>
                  <AnchorPointY>0.5</AnchorPointY>
                </AnchorPoint>
                <Displacement>
                  <DisplacementX>5</DisplacementX>
                  <DisplacementY>5</DisplacementY>
                </Displacement>
              </PointPlacement>
            </LabelPlacement>
            <Halo>
                <Radius>2</Radius>
                <Fill>
                    <CssParameter name="fill">#FFFFFF</CssParameter>
                </Fill>
            </Halo>         
            <Fill>
              <CssParameter name="fill">#000000</CssParameter>
            </Fill>
             <VendorOption name="spaceAround">-1</VendorOption>
            <VendorOption name="partials">true</VendorOption>
            <VendorOption name="group">yes</VendorOption>
            <VendorOption name="labelAllGroup">true</VendorOption>
            <VendorOption name="conflictResolution">false</VendorOption>
          </TextSymbolizer>
        </Rule>
        <Rule>
        <Name>Geo_Rule_pxs_gna_mobile_site</Name>
          <MinScaleDenominator>350000.0</MinScaleDenominator>
          <PointSymbolizer>
            <Graphic>
              <ExternalGraphic>
                <OnlineResource xlink:type="simple" xlink:href="http://jb6i4.web.bcserver:22121port/geoserver/styles/MobileTower_green.png"/>
                <Format>image/png</Format>
              </ExternalGraphic>
              <Size>40</Size>
            </Graphic>
          </PointSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" 
                       xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" 
                       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">
  <NamedLayer>
    <Name>pxs_gna_mobile_site</Name>
    <UserStyle>
      <Name>Geo_Style_pxs_gna_mobile_site</Name>
      <FeatureTypeStyle>
        <Rule>
          <Name>Geo_Rule_pxs_gna_mobile_site</Name>
          <MaxScaleDenominator>350000.0</MaxScaleDenominator>
          <PointSymbolizer>
            <Graphic>
              <ExternalGraphic>
                <OnlineResource xlink:type="simple" xlink:href="http://jb6i4.web.bc:22121/geoserver/styles/MobileTower_green.png"/>
                <Format>image/png</Format>
              </ExternalGraphic>
              <Size>40</Size>
            </Graphic>
          </PointSymbolizer>
   
          <TextSymbolizer>
                   <Geometry>
  <ogc:Function name="centroid">
    <ogc:PropertyName>geom</ogc:PropertyName>
  </ogc:Function>
</Geometry>
            <Label>
              <ogc:PropertyName>candidate_code</ogc:PropertyName>
            </Label>
            <Font>
              <CssParameter name="font-family">Arial</CssParameter>
              <CssParameter name="font-size">12</CssParameter>
              <CssParameter name="font-style">normal</CssParameter>
              <CssParameter name="font-weight">bold</CssParameter>
            </Font>
            <LabelPlacement>
              <PointPlacement>
                <AnchorPoint>
                  <AnchorPointX>0.5</AnchorPointX>
                  <AnchorPointY>0.5</AnchorPointY>
                </AnchorPoint>
                <Displacement>
                  <DisplacementX>5</DisplacementX>
                  <DisplacementY>5</DisplacementY>
                </Displacement>
              </PointPlacement>
            </LabelPlacement>
            <Halo>
                <Radius>2</Radius>
                <Fill>
                    <CssParameter name="fill">#FFFFFF</CssParameter>
                </Fill>
            </Halo>         
            <Fill>
              <CssParameter name="fill">#000000</CssParameter>
            </Fill>
             <VendorOption name="spaceAround">-1</VendorOption>
            <VendorOption name="partials">true</VendorOption>
            <VendorOption name="group">yes</VendorOption>
            <VendorOption name="labelAllGroup">true</VendorOption>
            <VendorOption name="conflictResolution">false</VendorOption>
          </TextSymbolizer>
        </Rule>
        <Rule>
        <Name>Geo_Rule_pxs_gna_mobile_site</Name>
          <MinScaleDenominator>350000.0</MinScaleDenominator>
          <PointSymbolizer>
            <Graphic>
              <ExternalGraphic>
                <OnlineResource xlink:type="simple" xlink:href="http://jb6i4.web.bc:22121/geoserver/styles/MobileTower_green.png"/>
                <Format>image/png</Format>
              </ExternalGraphic>
              <Size>40</Size>
            </Graphic>
          </PointSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" 
                       xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" 
                       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">
  <NamedLayer>
    <Name>pxs_gna_mobile_site</Name>
    <UserStyle>
      <Name>Geo_Style_pxs_gna_mobile_site</Name>
      <FeatureTypeStyle>
        <Rule>
          <Name>Geo_Rule_pxs_gna_mobile_site</Name>
          <MaxScaleDenominator>350000.0</MaxScaleDenominator>
          <PointSymbolizer>
            <Graphic>
              <ExternalGraphic>
                <OnlineResource xlink:type="simple" xlink:href="http://server:port/geoserver/styles/MobileTower_green.png"/>
                <Format>image/png</Format>
              </ExternalGraphic>
              <Size>40</Size>
            </Graphic>
          </PointSymbolizer>
   
          <TextSymbolizer>
                   <Geometry>
  <ogc:Function name="centroid">
    <ogc:PropertyName>geom</ogc:PropertyName>
  </ogc:Function>
</Geometry>
            <Label>
              <ogc:PropertyName>candidate_code</ogc:PropertyName>
            </Label>
            <Font>
              <CssParameter name="font-family">Arial</CssParameter>
              <CssParameter name="font-size">12</CssParameter>
              <CssParameter name="font-style">normal</CssParameter>
              <CssParameter name="font-weight">bold</CssParameter>
            </Font>
            <LabelPlacement>
              <PointPlacement>
                <AnchorPoint>
                  <AnchorPointX>0.5</AnchorPointX>
                  <AnchorPointY>0.5</AnchorPointY>
                </AnchorPoint>
                <Displacement>
                  <DisplacementX>5</DisplacementX>
                  <DisplacementY>5</DisplacementY>
                </Displacement>
              </PointPlacement>
            </LabelPlacement>
            <Halo>
                <Radius>2</Radius>
                <Fill>
                    <CssParameter name="fill">#FFFFFF</CssParameter>
                </Fill>
            </Halo>         
            <Fill>
              <CssParameter name="fill">#000000</CssParameter>
            </Fill>
             <VendorOption name="spaceAround">-1</VendorOption>
            <VendorOption name="partials">true</VendorOption>
            <VendorOption name="group">yes</VendorOption>
            <VendorOption name="labelAllGroup">true</VendorOption>
            <VendorOption name="conflictResolution">false</VendorOption>
          </TextSymbolizer>
        </Rule>
        <Rule>
        <Name>Geo_Rule_pxs_gna_mobile_site</Name>
          <MinScaleDenominator>350000.0</MinScaleDenominator>
          <PointSymbolizer>
            <Graphic>
              <ExternalGraphic>
                <OnlineResource xlink:type="simple" xlink:href="http://server:port/geoserver/styles/MobileTower_green.png"/>
                <Format>image/png</Format>
              </ExternalGraphic>
              <Size>40</Size>
            </Graphic>
          </PointSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
removed images
Source Link
Ian Turton
  • 83.2k
  • 6
  • 89
  • 189

enter image description here

enter image description here

SLD:

enter image description here

enter image description here

SLD:

SLD:

added 3718 characters in body
Source Link

SLD:

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" 
                       xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" 
                       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">
  <NamedLayer>
    <Name>pxs_gna_mobile_site</Name>
    <UserStyle>
      <Name>Geo_Style_pxs_gna_mobile_site</Name>
      <FeatureTypeStyle>
        <Rule>
          <Name>Geo_Rule_pxs_gna_mobile_site</Name>
          <MaxScaleDenominator>350000.0</MaxScaleDenominator>
          <PointSymbolizer>
            <Graphic>
              <ExternalGraphic>
                <OnlineResource xlink:type="simple" xlink:href="http://jb6i4.web.bc:22121/geoserver/styles/MobileTower_green.png"/>
                <Format>image/png</Format>
              </ExternalGraphic>
              <Size>40</Size>
            </Graphic>
          </PointSymbolizer>
   
          <TextSymbolizer>
                   <Geometry>
  <ogc:Function name="centroid">
    <ogc:PropertyName>geom</ogc:PropertyName>
  </ogc:Function>
</Geometry>
            <Label>
              <ogc:PropertyName>candidate_code</ogc:PropertyName>
            </Label>
            <Font>
              <CssParameter name="font-family">Arial</CssParameter>
              <CssParameter name="font-size">12</CssParameter>
              <CssParameter name="font-style">normal</CssParameter>
              <CssParameter name="font-weight">bold</CssParameter>
            </Font>
            <LabelPlacement>
              <PointPlacement>
                <AnchorPoint>
                  <AnchorPointX>0.5</AnchorPointX>
                  <AnchorPointY>0.5</AnchorPointY>
                </AnchorPoint>
                <Displacement>
                  <DisplacementX>5</DisplacementX>
                  <DisplacementY>5</DisplacementY>
                </Displacement>
              </PointPlacement>
            </LabelPlacement>
            <Halo>
                <Radius>2</Radius>
                <Fill>
                    <CssParameter name="fill">#FFFFFF</CssParameter>
                </Fill>
            </Halo>         
            <Fill>
              <CssParameter name="fill">#000000</CssParameter>
            </Fill>
             <VendorOption name="spaceAround">-1</VendorOption>
            <VendorOption name="partials">true</VendorOption>
            <VendorOption name="group">yes</VendorOption>
            <VendorOption name="labelAllGroup">true</VendorOption>
            <VendorOption name="conflictResolution">false</VendorOption>
          </TextSymbolizer>
        </Rule>
        <Rule>
        <Name>Geo_Rule_pxs_gna_mobile_site</Name>
          <MinScaleDenominator>350000.0</MinScaleDenominator>
          <PointSymbolizer>
            <Graphic>
              <ExternalGraphic>
                <OnlineResource xlink:type="simple" xlink:href="http://jb6i4.web.bc:22121/geoserver/styles/MobileTower_green.png"/>
                <Format>image/png</Format>
              </ExternalGraphic>
              <Size>40</Size>
            </Graphic>
          </PointSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>

SLD:

<?xml version="1.0" encoding="ISO-8859-1"?>
<StyledLayerDescriptor version="1.0.0" 
                       xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" 
                       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">
  <NamedLayer>
    <Name>pxs_gna_mobile_site</Name>
    <UserStyle>
      <Name>Geo_Style_pxs_gna_mobile_site</Name>
      <FeatureTypeStyle>
        <Rule>
          <Name>Geo_Rule_pxs_gna_mobile_site</Name>
          <MaxScaleDenominator>350000.0</MaxScaleDenominator>
          <PointSymbolizer>
            <Graphic>
              <ExternalGraphic>
                <OnlineResource xlink:type="simple" xlink:href="http://jb6i4.web.bc:22121/geoserver/styles/MobileTower_green.png"/>
                <Format>image/png</Format>
              </ExternalGraphic>
              <Size>40</Size>
            </Graphic>
          </PointSymbolizer>
   
          <TextSymbolizer>
                   <Geometry>
  <ogc:Function name="centroid">
    <ogc:PropertyName>geom</ogc:PropertyName>
  </ogc:Function>
</Geometry>
            <Label>
              <ogc:PropertyName>candidate_code</ogc:PropertyName>
            </Label>
            <Font>
              <CssParameter name="font-family">Arial</CssParameter>
              <CssParameter name="font-size">12</CssParameter>
              <CssParameter name="font-style">normal</CssParameter>
              <CssParameter name="font-weight">bold</CssParameter>
            </Font>
            <LabelPlacement>
              <PointPlacement>
                <AnchorPoint>
                  <AnchorPointX>0.5</AnchorPointX>
                  <AnchorPointY>0.5</AnchorPointY>
                </AnchorPoint>
                <Displacement>
                  <DisplacementX>5</DisplacementX>
                  <DisplacementY>5</DisplacementY>
                </Displacement>
              </PointPlacement>
            </LabelPlacement>
            <Halo>
                <Radius>2</Radius>
                <Fill>
                    <CssParameter name="fill">#FFFFFF</CssParameter>
                </Fill>
            </Halo>         
            <Fill>
              <CssParameter name="fill">#000000</CssParameter>
            </Fill>
             <VendorOption name="spaceAround">-1</VendorOption>
            <VendorOption name="partials">true</VendorOption>
            <VendorOption name="group">yes</VendorOption>
            <VendorOption name="labelAllGroup">true</VendorOption>
            <VendorOption name="conflictResolution">false</VendorOption>
          </TextSymbolizer>
        </Rule>
        <Rule>
        <Name>Geo_Rule_pxs_gna_mobile_site</Name>
          <MinScaleDenominator>350000.0</MinScaleDenominator>
          <PointSymbolizer>
            <Graphic>
              <ExternalGraphic>
                <OnlineResource xlink:type="simple" xlink:href="http://jb6i4.web.bc:22121/geoserver/styles/MobileTower_green.png"/>
                <Format>image/png</Format>
              </ExternalGraphic>
              <Size>40</Size>
            </Graphic>
          </PointSymbolizer>
        </Rule>
      </FeatureTypeStyle>
    </UserStyle>
  </NamedLayer>
</StyledLayerDescriptor>
Post Reopened by tinlyx, xunilk, Ian Turton geoserver
deleted 221 characters in body
Source Link
Ian Turton
  • 83.2k
  • 6
  • 89
  • 189
Loading
corrected grammar, improved formatting
Source Link
nmtoken
  • 13.6k
  • 5
  • 38
  • 89
Loading
deleted 3044 characters in body
Source Link
Loading
added 3212 characters in body
Source Link
Loading
Post Closed as "Duplicate" by Ian Turton geoserver
Source Link
Loading