[Geoserver-users] Labels not rendered

Hi,

I made a simple style and use it for a postgis datastore. If i use
openlayers tiled mode to show this,
at some zoom levels there are no labels drawn. The images are allways
correct. What's wrong with my style?
        <Rule>
          <Name>Symbol</Name>
      <PointSymbolizer>
        <Graphic>
          <ExternalGraphic>
            <OnlineResource xlink:type="simple" xlink:href="img.png"/>
            <Format>image/png</Format>
            </ExternalGraphic>
          <Size>25.0</Size>
        </Graphic>
      </PointSymbolizer>
        <TextSymbolizer>
          <Label>
        <ogc:PropertyName>station_id</ogc:PropertyName>
          </Label>
          
        <CssParameter name="font-family">Arial</CssParameter>
        <CssParameter name="font-style">Normal</CssParameter>
        <CssParameter name="font-size">12</CssParameter>
          
          <Fill>
        <CssParameter name="fill">#000000</CssParameter>
          </Fill>
           </TextSymbolizer>
        </Rule>

--
View this message in context: http://www.nabble.com/Labels-not-rendered-tp22336450p22336450.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Stefan,

Looking at the it appears to be missing a <Font> tag around the font parameters.

-Justin

Stefan Bernsdorf wrote:

Hi,

I made a simple style and use it for a postgis datastore. If i use
openlayers tiled mode to show this,
at some zoom levels there are no labels drawn. The images are allways
correct. What's wrong with my style?
        <Rule>
          <Name>Symbol</Name> <PointSymbolizer>
        <Graphic>
          <ExternalGraphic>
            <OnlineResource xlink:type="simple" xlink:href="img.png"/>
            <Format>image/png</Format>
            </ExternalGraphic>
          <Size>25.0</Size>
        </Graphic>
      </PointSymbolizer> <TextSymbolizer>
          <Label>
        <ogc:PropertyName>station_id</ogc:PropertyName>
          </Label>
                  <CssParameter name="font-family">Arial</CssParameter>
        <CssParameter name="font-style">Normal</CssParameter>
        <CssParameter name="font-size">12</CssParameter>
                    <Fill>
        <CssParameter name="fill">#000000</CssParameter>
          </Fill>
           </TextSymbolizer> </Rule>

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

Hi Justin,
thank you for yor reply.
But the missing tag was a mistake when writing the mail.

I simplified the Rule to its basics.
Again, the icons are allways shown , but as before in one zoom level in
tiled view a label is missing.
This is the updated Rule.
        <Rule>
          <Name>Symbol</Name>
      <PointSymbolizer>
        <Graphic>
          <ExternalGraphic>
            <OnlineResource xlink:type="simple" xlink:href="image.png"/>
            <Format>image/png</Format>
            </ExternalGraphic>
          <Size>25.0</Size>
        </Graphic>
      </PointSymbolizer>
        <TextSymbolizer>
        <VendorOption name="spaceAround">-30</VendorOption>
          <Label>
        <ogc:PropertyName>station_id</ogc:PropertyName>
          </Label>
          <Fill>
        <CssParameter name="fill">#000000</CssParameter>
          </Fill>
           </TextSymbolizer>
          
        </Rule>

Regards,
Stefan.

Justin Deoliveira-6 wrote:

Hi Stefan,

Looking at the it appears to be missing a tag around the font
parameters.

-Justin

Stefan Bernsdorf wrote:

Hi,

I made a simple style and use it for a postgis datastore. If i use
openlayers tiled mode to show this,
at some zoom levels there are no labels drawn. The images are allways
correct. What's wrong with my style?
        <Rule>
          <Name>Symbol</Name>
      <PointSymbolizer>
        <Graphic>
          <ExternalGraphic>
            <OnlineResource xlink:type="simple" xlink:href="img.png"/>
            <Format>image/png</Format>
            </ExternalGraphic>
          <Size>25.0</Size>
        </Graphic>
      </PointSymbolizer>
        <TextSymbolizer>
          <Label>
        <ogc:PropertyName>station_id</ogc:PropertyName>
          </Label>
          
        <CssParameter name="font-family">Arial</CssParameter>
        <CssParameter name="font-style">Normal</CssParameter>
        <CssParameter name="font-size">12</CssParameter>
          
          <Fill>
        <CssParameter name="fill">#000000</CssParameter>
          </Fill>
           </TextSymbolizer>
        </Rule>

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/Labels-not-rendered-tp22336450p22355897.html
Sent from the GeoServer - User mailing list archive at Nabble.com.