have you tried using the MinScaleDenominator tag? I think this would
necessary, so not all layers attempt to render at the smallest scale
... he's an example from my sld:
<Rule>
<Name>cite:planet_osm_polygon</Name>
<Title>udbuilding</Title>
<Abstract>udbuilding style openstreetmap data</Abstract>
<ogc:Filter>
<ogc:And>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>building</ogc:PropertyName>
<ogc:Literal>yes</ogc:Literal>
</ogc:PropertyIsEqualTo>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>amenity</ogc:PropertyName>
<ogc:Literal>university</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:And>
</ogc:Filter>
<MinScaleDenominator>20000</MinScaleDenominator>
<MaxScaleDenominator>40000</MaxScaleDenominator>
<TextSymbolizer>
<Label>
<ogc:PropertyName>labelname</ogc:PropertyName>
</Label>
<Font>
<CssParameter name="font-size">12</CssParameter>
<CssParameter name="font-family">Arial</CssParameter>
<CssParameter name="font-color">#808080</CssParameter>
</Font>
<LabelPlacement>
<LinePlacement>
<PerpendicularOffset>
0
</PerpendicularOffset>
</LinePlacement>
</LabelPlacement>
<Halo>
<Radius>
<ogc:Literal>1</ogc:Literal>
</Radius>
<Fill>
<CssParameter name="fill">#f4faf6</CssParameter>
</Fill>
</Halo>
<VendorOption name="autoWrap">75</VendorOption>
<VendorOption name="maxDisplacement">75</VendorOption>
<VendorOption name="goodnessOfFit">0</VendorOption>
<VendorOption name="group">true</VendorOption>
</TextSymbolizer>
</Rule>
On Tue, Aug 2, 2011 at 6:48 AM, Andrey Maraev <[email protected]> wrote:
> Hello there!
> I need your suggestions. I try to use the Geoserver for OSM-data in
> PostgreSQL.
> First, I connected to database via geoserver and created the new store, then
> I got the layers below:
> planet_osm_polygon
> planet_osm_point
> planet_osm_line
> Then I used osm-styles for each layer, then I created the layer-group with
> all layers and finaly I got the nice map like osm.org in Openlayers (Layer
> Preview)
> But I have some troubles. When I use the small map like
> Mexico(database=700Mb) preview of map is working fine,when i use i.e. the
> map of France (database=19Gb) the layers do not open and loading takes too
> much time..
> I think the hardware resources are not enough for i could work with it.
> Is there system requirements for using osm-data in the geoserver?
> Should I use geoserver via Tomcat,Jetty or something else?
>
> Thank you for your help and advices!
> --
> lernen,lernen und lernen
>
>
> ------------------------------------------------------------------------------
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos & much more. Register early & save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
--
Ben Mearns
Lead Geospatial Information Consultant
IT-Client Support & Services
University of Delaware
[email protected] : 302.831.1978
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users