It looks fine to me, but what it could be is the property name tag for your text symbolizer. Check and make sure that the label in it is correct. <ogc:PropertyName>TYPE</ogc:PropertyName>
It is case sensitive, so make sure it matches the column name of the data exactly.
Brent Owens
(The Open Planning Project)
olivier terral wrote:
hi,
excuse me i send the bad sld , look this it's the good WMC with<SLD>:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<ViewContext version="1.0.0" id="WMC vide de cadastre" xmlns:ogc="http://www.opengis.net/ogc" xmlns="http://www.opengis.net/context" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd">
<General>
<Window width="600" height="300"/>
<BoundingBox SRS="EPSG:4326" minx="141.57875" miny="-44.26625" maxx="151.03125" maxy="-39.56375"/>
<Title>tasmania</Title>
<KeywordList>
<Keyword>tasmania</Keyword>
</KeywordList>
<Abstract>salop</Abstract>
</General>
<LayerList>
<Layer queryable="0" hidden="0">
<Server service="wms" version="1.1.1" title="My GeoServer WMS">
<OnlineResource xlink:type="simple" xlink:href="http://localhost:8080/geoserver/wms?"/>
</Server>
<Name>topp:tasmania_roads</Name>
<Title>tasmania_roads_Type</Title>
<Abstract>Generated from tasmania_roads_shapefile</Abstract>
<SRS>EPSG:4326</SRS>
<FormatList>
<Format current="1">image/png</Format>
</FormatList>
<StyleList><Style current="1">
<SLD>
<StyledLayerDescriptor version="1.0.0" id="sld vide" xmlns:ogc="http://www.opengis.net/ogc">
<NamedLayer>
<Name>topp:tasmania_roads</Name>
<UserStyle>
<Title/>
<Abstract/>
<FeatureTypeStyle>
<Rule>
<MinScaleDenominator>0</MinScaleDenominator>
<MaxScaleDenominator>1000000000</MaxScaleDenominator>
<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">#FF0000</CssParameter>
<CssParameter name="stroke-opacity">0.75</CssParameter>
<CssParameter name="stroke-width">3</CssParameter>
</Stroke>
</LineSymbolizer>
</Rule>
<Rule>
<MinScaleDenominator>0</MinScaleDenominator>
<MaxScaleDenominator>10000000000</MaxScaleDenominator>
<TextSymbolizer>
<Label>
<ogc:PropertyName>TYPE</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-family">Times New Romans</CssParameter>
<CssParameter name="font-style">italic</CssParameter>
<CssParameter name="font-size">14</CssParameter>
<CssParameter name="font-weight">bold</CssParameter>
</Font>
<Halo>
<Radius>2</Radius>
<Fill>
<CssParameter name="fill">#FFFFFF</CssParameter>
<CssParameter name="fill-opacity">0,85</CssParameter>
</Fill>
</Halo>
<Fill>
<CssParameter name="fill">#00FF00</CssParameter>
<CssParameter name="fill-opacity">1</CssParameter>
</Fill>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor></SLD></Style></StyleList></Layer></LayerList>
</ViewContext>
Brent Owens a écrit :
Could you send us the full SLD with both rules? So far this one looks ok.
I have used SLD's many times with many rules, using filters and scale denominators, and they all work well.
Brent Owens
(The Open Planning Project)
olivier terral wrote:
hi,
I try this method for my sld editor, but when i inserted two rules for example a TextSymbolizer Rule and a Polygon Rule , nothing appears on the map.
It seems to be that The Text Symbolizer rule doesn't applied because when i delete TextSymbolizer rule , layer appears.
Anybody can explain why?
Thanks in advance.
for information i use mapbuilder geoserver
<Layer queryable="0" hidden="0"><Server service="wms" version="1.1.1" title="My GeoServer WMS">
<OnlineResource xlink:type="simple" xlink:href="http://localhost:8080/geoserver/wms?"/>
</Server>
<Name>topp:tasmania_cities</Name>
<Title>tasmania_cities_Type</Title>
<Abstract>Generated from tasmania_cities_shapefile</Abstract>
<SRS>EPSG:4326</SRS>
<FormatList>
<Format current="1">image/png</Format>
</FormatList>
<StyleList>
<Style current="1">
<SLD>
<StyledLayerDescriptor version="1.0.0" id="sld vide" xmlns:ogc="http://www.opengis.net/ogc">
<NamedLayer>
<Name>topp:tasmania_cities</Name>
<UserStyle> <Title/>
<Abstract/>
<FeatureTypeStyle> <Rule>
<MinScaleDenominator>0</MinScaleDenominator>
<MaxScaleDenominator>100000</MaxScaleDenominator>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>square</WellKnownName>
<Fill><CssParameter name="fill">#FF0000</CssParameter><CssParameter name="fill-opacity">0.75</CssParameter></Fill>
<Stroke><CssParameter name="stroke">#000000</CssParameter>
<CssParameter name="stroke-opacity">0</CssParameter><CssParameter name="stroke-width">0</CssParameter>
</Stroke>
</Mark>
<Size>20</Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
</SLD>
</Style>
</StyleList>
</Layer>
Saul Farber wrote:
Josh,
Here's an example that works just fine for us (modified mapbuilder 1.0_rc2)
--saul
<Layer queryable="1" hidden="1">
<Server service="OGC:WMS" version="1.1.1" title="Local">
<OnlineResource xlink:type="simple" xlink:href="http://64.119.128.70/geoserver/wms"/>
</Server>
<Name>GISDATA.TOWNS_POLY</Name>
<Title>MA Town Labels</Title>
<SRS>EPSG:26986</SRS>
<FormatList>
<Format current="1">image/png</Format>
</FormatList>
<StyleList>
<Style current="1">
<SLD>
<StyledLayerDescriptor version="1.0.0">
<NamedLayer>
<Name>massgis:GISDATA.TOWNS_POLY</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<TextSymbolizer>
<Label>
<PropertyName>TOWN</PropertyName>
</Label>
<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-size">14</CssParameter>
</Font>
<Fill>
<CssParameter name="fill-opacity">0.5</CssParameter>
</Fill>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
</SLD>
</Style>
</StyleList>
</Layer>
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mapbuilder-users mailing list
Mapbuilder-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mapbuilder-users mailing list
Mapbuilder-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
I 'm sure PropertyName is good because when i send the contain of <sld> to a get map request it works correctly and Type property appears.
Is it possible you try this WMC on your geoserver ?
Like this i would known if it is my envirronement who bug
Brent Owens a écrit :
It looks fine to me, but what it could be is the property name tag for your text symbolizer. Check and make sure that the label in it is correct. <ogc:PropertyName>TYPE</ogc:PropertyName>
It is case sensitive, so make sure it matches the column name of the data exactly.
Brent Owens
(The Open Planning Project)
olivier terral wrote:
hi,
excuse me i send the bad sld , look this it's the good WMC with<SLD>:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<ViewContext version="1.0.0" id="WMC vide de cadastre" xmlns:ogc="http://www.opengis.net/ogc" xmlns="http://www.opengis.net/context" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd">
<General>
<Window width="600" height="300"/>
<BoundingBox SRS="EPSG:4326" minx="141.57875" miny="-44.26625" maxx="151.03125" maxy="-39.56375"/>
<Title>tasmania</Title>
<KeywordList>
<Keyword>tasmania</Keyword>
</KeywordList>
<Abstract>salop</Abstract>
</General>
<LayerList>
<Layer queryable="0" hidden="0">
<Server service="wms" version="1.1.1" title="My GeoServer WMS">
<OnlineResource xlink:type="simple" xlink:href="http://localhost:8080/geoserver/wms?"/>
</Server>
<Name>topp:tasmania_roads</Name>
<Title>tasmania_roads_Type</Title>
<Abstract>Generated from tasmania_roads_shapefile</Abstract>
<SRS>EPSG:4326</SRS>
<FormatList>
<Format current="1">image/png</Format>
</FormatList>
<StyleList><Style current="1">
<SLD>
<StyledLayerDescriptor version="1.0.0" id="sld vide" xmlns:ogc="http://www.opengis.net/ogc">
<NamedLayer>
<Name>topp:tasmania_roads</Name>
<UserStyle>
<Title/>
<Abstract/>
<FeatureTypeStyle>
<Rule>
<MinScaleDenominator>0</MinScaleDenominator>
<MaxScaleDenominator>1000000000</MaxScaleDenominator>
<LineSymbolizer>
<Stroke>
<CssParameter name="stroke">#FF0000</CssParameter>
<CssParameter name="stroke-opacity">0.75</CssParameter>
<CssParameter name="stroke-width">3</CssParameter>
</Stroke>
</LineSymbolizer>
</Rule>
<Rule>
<MinScaleDenominator>0</MinScaleDenominator>
<MaxScaleDenominator>10000000000</MaxScaleDenominator>
<TextSymbolizer>
<Label>
<ogc:PropertyName>TYPE</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-family">Times New Romans</CssParameter>
<CssParameter name="font-style">italic</CssParameter>
<CssParameter name="font-size">14</CssParameter>
<CssParameter name="font-weight">bold</CssParameter>
</Font>
<Halo>
<Radius>2</Radius>
<Fill>
<CssParameter name="fill">#FFFFFF</CssParameter>
<CssParameter name="fill-opacity">0,85</CssParameter>
</Fill>
</Halo>
<Fill>
<CssParameter name="fill">#00FF00</CssParameter>
<CssParameter name="fill-opacity">1</CssParameter>
</Fill>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor></SLD></Style></StyleList></Layer></LayerList>
</ViewContext>
Brent Owens a écrit :
Could you send us the full SLD with both rules? So far this one looks ok.
I have used SLD's many times with many rules, using filters and scale denominators, and they all work well.
Brent Owens
(The Open Planning Project)
olivier terral wrote:
hi,
I try this method for my sld editor, but when i inserted two rules for example a TextSymbolizer Rule and a Polygon Rule , nothing appears on the map.
It seems to be that The Text Symbolizer rule doesn't applied because when i delete TextSymbolizer rule , layer appears.
Anybody can explain why?
Thanks in advance.
for information i use mapbuilder geoserver
<Layer queryable="0" hidden="0"><Server service="wms" version="1.1.1" title="My GeoServer WMS">
<OnlineResource xlink:type="simple" xlink:href="http://localhost:8080/geoserver/wms?"/>
</Server>
<Name>topp:tasmania_cities</Name>
<Title>tasmania_cities_Type</Title>
<Abstract>Generated from tasmania_cities_shapefile</Abstract>
<SRS>EPSG:4326</SRS>
<FormatList>
<Format current="1">image/png</Format>
</FormatList>
<StyleList>
<Style current="1">
<SLD>
<StyledLayerDescriptor version="1.0.0" id="sld vide" xmlns:ogc="http://www.opengis.net/ogc">
<NamedLayer>
<Name>topp:tasmania_cities</Name>
<UserStyle> <Title/>
<Abstract/>
<FeatureTypeStyle> <Rule>
<MinScaleDenominator>0</MinScaleDenominator>
<MaxScaleDenominator>100000</MaxScaleDenominator>
<PointSymbolizer>
<Graphic>
<Mark>
<WellKnownName>square</WellKnownName>
<Fill><CssParameter name="fill">#FF0000</CssParameter><CssParameter name="fill-opacity">0.75</CssParameter></Fill>
<Stroke><CssParameter name="stroke">#000000</CssParameter>
<CssParameter name="stroke-opacity">0</CssParameter><CssParameter name="stroke-width">0</CssParameter>
</Stroke>
</Mark>
<Size>20</Size>
</Graphic>
</PointSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
</SLD>
</Style>
</StyleList>
</Layer>
Saul Farber wrote:
Josh,
Here's an example that works just fine for us (modified mapbuilder 1.0_rc2)
--saul
<Layer queryable="1" hidden="1">
<Server service="OGC:WMS" version="1.1.1" title="Local">
<OnlineResource xlink:type="simple" xlink:href="http://64.119.128.70/geoserver/wms"/>
</Server>
<Name>GISDATA.TOWNS_POLY</Name>
<Title>MA Town Labels</Title>
<SRS>EPSG:26986</SRS>
<FormatList>
<Format current="1">image/png</Format>
</FormatList>
<StyleList>
<Style current="1">
<SLD>
<StyledLayerDescriptor version="1.0.0">
<NamedLayer>
<Name>massgis:GISDATA.TOWNS_POLY</Name>
<UserStyle>
<FeatureTypeStyle>
<Rule>
<TextSymbolizer>
<Label>
<PropertyName>TOWN</PropertyName>
</Label>
<Font>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-size">14</CssParameter>
</Font>
<Fill>
<CssParameter name="fill-opacity">0.5</CssParameter>
</Fill>
</TextSymbolizer>
</Rule>
</FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
</SLD>
</Style>
</StyleList>
</Layer>
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mapbuilder-users mailing list
Mapbuilder-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mapbuilder-users mailing list
Mapbuilder-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users