Michael,

Look into the VendorOptions "labelAllGroup", "repeat" and
 "maxDisplacement" to fine-tune the repetition of names along your road 
segments. It's a lot of going back and forth, so be patient to arrive at
 the right values for each scale.

You might also be hitting the 
issue, that at smaller scales, the road segments become too short to be 
labeled. Fair enough, the VendorOption "group" gets you a long way, but 
try grouping on the database side of things as well using the attributes
 you use in the filters of your SLD (i.e. FRC) . Be sure to add the 
admin area that the road segment is in to the "group by" clause, so you 
won't be grouping road segments that have the same name across the 
country into one group (e.g. the French equivalent of "High Street"). 
Thus you chain the road segments into longer pieces that fit your road 
names, without loosing the attributes.

In a next step, you could 
create another field to store abbreviations to shorten the road names as
 well (e.g. Boulevard becomes Blvd and Avenue becomes Ave) and use this 
field only to label the road segments at smaller scales.

Finally,
 just using FRC in your filters does not give you a consistent road 
network at all scales. Check out Net2Class as well. Particularly when 
zoomed out completely, roads may seem to end nowhere if you only use 
FRC.

You see, it's indeed a bit of database, a bit of style and then a bit of...

Regards,

Edward

Date: Mon, 5 Sep 2011 11:27:30 +0200
Subject: Re: [Geoserver-users] Optimization of Geoserver ( database + style + ? 
)
From: [email protected]
To: [email protected]; [email protected]
CC: [email protected]

Yes I got It, 

I 've carefully followed your advises :

I've created one table for all the roads, for all the wa, wl, lu, a8.
for all the table I've created an index for the frc field and the geom field.




It looks like that it is really better to use postgis with one table for all 
the roads, one table for all the wa, ... than using multiple shape file .




Now, I've some problem to render properly the name of the street :
áá I really don't understand why, some road got a name and other don't have a 
name ...

I had to zoom to see the name of the roads (and there is still not enough 
road's name on the map) .



I don't understand how it works ? I discovered that more the police is little, 
the more you see the road's name ... But still, not enough .....




On Fri, Sep 2, 2011 at 12:01 PM, Harikumar Reddy <[email protected]> wrote:






Hi,

You need specify which type of roads to be drawn at a particular mapscale. Find 
attached sample SLD we are using with result wms screenshots of road for your 
reference., The SLD is giving response wms image (jpeg) within 4-5 seconds 
along with other layers (we need to still optimise the road style to get 
response within 2-3 seconds). 









You have written SLD for different scales but not mentioned what type of roads 
to be drawn at particular scale (AFAIK by observing your SLD given).

Use filters like given below (check attached SLD to have complete idea). we 
also has face many problems during SLD preparation.








As i am ex product engineer of TeleAtlas india, i have remembered their 
attributes. you can use FRC/FOW/NET class as OGC filter parameter, which Edward 
has already conveyed.

============================================








<Rule>

ááááááá </Rule>===============================================









I hope, it may help you.



                                          
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to