[Geoserver-devel] Unique Label property In <TextSymbolizer> (SLD file)

Hi,
  If I set a label property inside the <TextSymbolizer>, it seems can only
creste on instance if have multiple same value for the label property.
For example:
<TextSymbolizer>

            <Geometry>
      <ogc:PropertyName>the_geom</ogc:PropertyName>
    </Geometry>
    <Label>
    <ogc:PropertyName>the_yield</ogc:PropertyName>
    </Label>
    <Font>
    <CssParameter name="font-family">Arial</CssParameter>
    <CssParameter name="font-style">italic</CssParameter>
    <CssParameter name="font-size">10</CssParameter>
    </Font>
    <Fill>
    <CssParameter name="fill">#000000</CssParameter>
    </Fill>
    <Halo/>

      </TextSymbolizer>

Here, If the_yield have multiple and the same value inside the DB table,
the WMS seems can only generate the one text label and ignore others. Is
any solutions to this? Or anyboday can point me where I can start to hack
the source code and customize it bymyself?
   Thank you very much.
   Rong

Hi,
  I don't know if I explain my questions clearly. Again, For Example, If I
have records as below in a table:

oid | the_yeild | the_geom
1 30 geom1
2 30 geom2
3 30 geom3
4 30 geom4

They are different records with the same the_yield value and differen
the_geom value. But if I put the the_yield as a label for the_geom as
below:
<TextSymbolizer>
     <Geometry>
    <ogc:PropertyName>the_geom</ogc:PropertyName>
     </Geometry>
     <Label>
  <ogc:PropertyName>the_yield</ogc:PropertyName>
     </Label>
     <Font>
        <CssParameter name="font-family">Arial</CssParameter>
   <CssParameter name="font-style">italic</CssParameter>
   <CssParameter name="font-size">10</CssParameter>
     </Font>
     <Fill>
   <CssParameter name="fill">#000000</CssParameter>
     </Fill>
     <Halo/>

</TextSymbolizer>
   There is no filter here. I wish it can label the_yield value on each
th_geom even the_yield value is the same. It seems to me that the wms
right now can only label one the_yield on one the_geom if the_yield
value are the same. Any solution to this or any way to go around this
case or where is the easy start point I can cutomize it by myself?
   Thank you very much.
   Rong.

Hi,
  If I set a label property inside the <TextSymbolizer>, it seems can only
creste on instance if have multiple same value for the label property.
For example:
<TextSymbolizer>

            <Geometry>
      <ogc:PropertyName>the_geom</ogc:PropertyName>
    </Geometry>
    <Label>
    <ogc:PropertyName>the_yield</ogc:PropertyName>
    </Label>
    <Font>
    <CssParameter name="font-family">Arial</CssParameter>
    <CssParameter name="font-style">italic</CssParameter>
    <CssParameter name="font-size">10</CssParameter>
    </Font>
    <Fill>
    <CssParameter name="fill">#000000</CssParameter>
    </Fill>
    <Halo/>

      </TextSymbolizer>

Here, If the_yield have multiple and the same value inside the DB table,
the WMS seems can only generate the one text label and ignore others. Is
any solutions to this? Or anyboday can point me where I can start to hack
the source code and customize it bymyself?
   Thank you very much.
   Rong

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel