LucaCele
2017-05-23 13:46:26 UTC
Hello,
sorry I'm not an expert and I'm tryng to understand how geoserver works.
I'm writing cause I've a problem with Geoserver that I've installed with
Geonode.
Geoserver build is 2.7.4. I'm tryng to visualize a vector layer with some
symbol and I've made the sld file that below I've reported partially.
I can see a preview with openlayers but I cannot see all the features but
Just a subset. When I zoom I can find all features. I was wandering if there
is away to visualize all the features at the start without the need of
making zoom or if it is not possible.
I've also tried with MinScaleDenominator and MaxScaleDenominator but without
result (I think this is not the way to solve my problem)
Thank you very much for you help.
....
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1.0"
xmlns:xlink="http://www.w3.org/1999/xlink" units="mm"
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd"
xmlns:se="http://www.opengis.net/se">
<NamedLayer>
<se:Name>shp_p0106111_Alberghi</se:Name>
<UserStyle>
<se:Name>shp_p0106111_Alberghi</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<MinScaleDenominator>3</MinScaleDenominator>
<MaxScaleDenominator>1000000</MaxScaleDenominator>
<se:Name>1 - Albergo - Hotel</se:Name>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>tipologia</ogc:PropertyName>
<ogc:Literal>1</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<se:PointSymbolizer>
<se:Graphic>
<se:ExternalGraphic>
<se:OnlineResource xlink:type="simple"
xlink:href="p0106111_Alberghi.gif"/>
<se:Format>image/gif</se:Format>
</se:ExternalGraphic>
<se:Size>20</se:Size>
<se:Displacement>
<se:DisplacementX>0</se:DisplacementX>
<se:DisplacementY>-2.40000000000000036</se:DisplacementY>
</se:Displacement>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
<se:Rule>
.....
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/cannot-see-all-features-with-openlayers-tp5321461.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
sorry I'm not an expert and I'm tryng to understand how geoserver works.
I'm writing cause I've a problem with Geoserver that I've installed with
Geonode.
Geoserver build is 2.7.4. I'm tryng to visualize a vector layer with some
symbol and I've made the sld file that below I've reported partially.
I can see a preview with openlayers but I cannot see all the features but
Just a subset. When I zoom I can find all features. I was wandering if there
is away to visualize all the features at the start without the need of
making zoom or if it is not possible.
I've also tried with MinScaleDenominator and MaxScaleDenominator but without
result (I think this is not the way to solve my problem)
Thank you very much for you help.
....
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1.0"
xmlns:xlink="http://www.w3.org/1999/xlink" units="mm"
xsi:schemaLocation="http://www.opengis.net/sld
http://schemas.opengis.net/sld/1.1.0/StyledLayerDescriptor.xsd"
xmlns:se="http://www.opengis.net/se">
<NamedLayer>
<se:Name>shp_p0106111_Alberghi</se:Name>
<UserStyle>
<se:Name>shp_p0106111_Alberghi</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<MinScaleDenominator>3</MinScaleDenominator>
<MaxScaleDenominator>1000000</MaxScaleDenominator>
<se:Name>1 - Albergo - Hotel</se:Name>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>tipologia</ogc:PropertyName>
<ogc:Literal>1</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
<se:PointSymbolizer>
<se:Graphic>
<se:ExternalGraphic>
<se:OnlineResource xlink:type="simple"
xlink:href="p0106111_Alberghi.gif"/>
<se:Format>image/gif</se:Format>
</se:ExternalGraphic>
<se:Size>20</se:Size>
<se:Displacement>
<se:DisplacementX>0</se:DisplacementX>
<se:DisplacementY>-2.40000000000000036</se:DisplacementY>
</se:Displacement>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
<se:Rule>
.....
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/cannot-see-all-features-with-openlayers-tp5321461.html
Sent from the GeoServer - User mailing list archive at Nabble.com.