Michael,
Have to agree, that rendering Tele Atlas data can take quite some time to
render. Particularly, it's the road network that has a lot of features!
However, my approach has been to insert all ESRI Shapefiles in PostGIS
database. Together with a spatial index and the CLUSTER command, the database
performs much better in selecting just the features that are within the
bounding box of your tile. Finally, you could create a VIEW that contains the
15 tables for France. Actually, for the road network you may even want to
create a new TABLE that contais the 15 NW tables for France.
Also, you can create attribute indexes on the attributes you use in the filters
in your SLDs. That's where you can optimise your SLDs. For example, it does not
make sense to render the residential road network when zoomed out to the full
extent of France. So you may want to add filters based on FRC, FOW and
NET2CLASS attributes.
Hope that helps you speed up your rendering.
Kind regards,
Edward
Date: Thu, 1 Sep 2011 19:22:17 +0200
From: [email protected]
To: [email protected]
Subject: [Geoserver-users] Optimization of Geoserver ( database + style + ? )
Hello,
I'm using geoserver to render the map of france ( I'm using TeleAtlas data ).
I received the TeleAtlas data as :
15 file ( zip).
Each zip, contain a list of layer ( shapefile ).
To render properly the france country, I decide to use these files.
So I created 15 store that point to each folder.
For each store I created 16 layers ( roads, area, water line, water area ).
I've also configured geowebcache.
My problem is actually, to renderá tiles ( by example paris, it takes time ....
15 sec for one tile, sometime ).
Of course, I've well configured the style, to avoid generating roads when the
zoom is little .
About my configuration ?
Connections
16
Memory Usage
406 MB
Free memory
JVM Version
Sun Microsystems Inc.: 1.6.0_24 (Java HotSpot(TM) 64-Bit Server VM)
Available Fonts
GeoServer can access 84 different fonts. Full list of available fonts
Native JAI
true
Native JAI ImageIO
true
JAI Maximum Memory
2 GB
JAI Memory Usage
0 KB
Free memory
JAI Memory Threshold
75.0
Number of JAI Tile Threads
5
JAI Tile Thread Priority
5
ThreadPoolExecutor Core Pool Size
5
ThreadPoolExecutor Max Pool Size
10
ThreadPoolExecutor Keep Alive Time (ms)
30000
Update Sequence
1608
The machine ? Ubuntu 10.04
alex@toto:~$ head /proc/cpuinfo
processoráááááá : 0
vendor_idáááááá : GenuineIntel
cpu familyááááá : 6
modeláááááááááá : 23
model nameááááá : Intel(R) Xeon(R) CPUáááááááááá X3323á @ 2.50GHz
steppingááááááá : 10
cpu MHzáááááááá : 2499.999
cache sizeááááá : 3072 KB
fpuáááááááááááá : yes
fpu_exceptionáá : yes
head /proc/meminfo
MemTotal:ááááááá 8196584 kB
MemFree:áááááááá 3855452 kB
Buffers:ááááááááá 197960 kB
Cached:ááááááááá 2584584 kB
SwapCached:ááááááááááá 0 kB
Active:ááááááááá 3612184 kB
Inactive:áááááááá 444928 kB
Active(anon):ááá 1278484 kB
Inactive(anon):áááá 4996 kB
Active(file):ááá 2333700 kB
Can you help me ? What i've done wrong ?
Thank you so much !
------ example of the style used for 3 different roads ( 05.shp 06.shp 07.shp)
----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld" xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
áá<UserLayer>
á áá<LayerFeatureConstraints>
á á áá<FeatureTypeConstraint/>
á áá</LayerFeatureConstraints>
á áá<UserStyle>
á á áá<FeatureTypeStyle>
á á á áá<Rule>
á á á á áá<MinScaleDenominator>2.5e4</MinScaleDenominator>
á á á á áá<MaxScaleDenominator>2e5</MaxScaleDenominator>
á á á á áá<LineSymbolizer>
á á á á á áá<Stroke>
á á á á á á áá<CssParameter name="stroke">#b7ab98</CssParameter>
á á á á á á áá<CssParameter name="stroke-width">1.0</CssParameter>
á á á á á á áá<CssParameter name="stroke-linecap">round</CssParameter>
á á á á á áá</Stroke>
á á á á áá</LineSymbolizer>
á á á áá</Rule>
á á áá</FeatureTypeStyle>
á á áá<FeatureTypeStyle>
á á á áá<Rule>
á á á á áá<MinScaleDenominator>3e3</MinScaleDenominator>
á á á á áá<MaxScaleDenominator>2.5e4</MaxScaleDenominator>
á á á á áá<LineSymbolizer>
á á á á á áá<Stroke>
á á á á á á áá<CssParameter name="stroke">#ab9e89</CssParameter>
á á á á á á áá<CssParameter name="stroke-width">6.0</CssParameter>
á á á á á á áá<CssParameter name="stroke-linecap">round</CssParameter>
á á á á á áá</Stroke>
á á á á áá</LineSymbolizer>
á á á áá</Rule>
á á áá</FeatureTypeStyle>
á á áá<FeatureTypeStyle>
á á á áá<Rule>
á á á á áá<MinScaleDenominator>3e3</MinScaleDenominator>
á á á á áá<MaxScaleDenominator>2.5e4</MaxScaleDenominator>
á á á á áá<LineSymbolizer>
á á á á á áá<Stroke>
á á á á á á áá<CssParameter name="stroke">#ffffff</CssParameter>
á á á á á á áá<CssParameter name="stroke-width">4.0</CssParameter>
á á á á á á áá<CssParameter name="stroke-linecap">round</CssParameter>
á á á á á áá</Stroke>
á á á á áá</LineSymbolizer>
á á á áá</Rule>
á á áá</FeatureTypeStyle>
á á áá<FeatureTypeStyle>
á á á áá<!--áádark -->
á á á áá<Rule>
á á á á áá<MinScaleDenominator>0.0</MinScaleDenominator>
á á á á áá<MaxScaleDenominator>3e3</MaxScaleDenominator>
á á á á áá<LineSymbolizer>
á á á á á áá<Stroke>
á á á á á á áá<CssParameter name="stroke">#ab9e89</CssParameter>
á á á á á á áá<CssParameter name="stroke-width">10.0</CssParameter>
á á á á á á áá<CssParameter name="stroke-linecap">round</CssParameter>
á á á á á áá</Stroke>
á á á á áá</LineSymbolizer>
á á á áá</Rule>
á á áá</FeatureTypeStyle>
á á áá<FeatureTypeStyle>
á á á áá<!--áálight -->
á á á áá<Rule>
á á á á áá<MinScaleDenominator>0.0</MinScaleDenominator>
á á á á áá<MaxScaleDenominator>3e3</MaxScaleDenominator>
á á á á áá<LineSymbolizer>
á á á á á áá<Stroke>
á á á á á á áá<CssParameter name="stroke">#ffffff</CssParameter>
á á á á á á áá<CssParameter name="stroke-width">8.0</CssParameter>
á á á á á á áá<CssParameter name="stroke-linecap">round</CssParameter>
á á á á á áá</Stroke>
á á á á áá</LineSymbolizer>
á á á áá</Rule>
á á áá</FeatureTypeStyle>
á á áá
á á áá
á á áá
á á áá<!-- labels -->
á á áá<FeatureTypeStyle>
á á á áá<!-- RTYPE 1 : -->áá
á á á áá<Rule>
á á á á áá<MaxScaleDenominator>1e5</MaxScaleDenominator>
á á á á áá<TextSymbolizer>
á á á á á áá<Label>
á á á á á á áá<ogc:PropertyName>NAME</ogc:PropertyName>
á á á á á áá</Label>
á á á á á áá<Font>
á á á á á á áá<CssParameter name="font-family">Arial</CssParameter>
á á á á á á áá<CssParameter name="font-style">Normal</CssParameter>
á á á á á á áá<CssParameter name="font-size">8</CssParameter>
á á á á á á áá<CssParameter name="font-weight">normal</CssParameter>
á á á á á áá</Font>
á á á á á áá<LabelPlacement>
á á á á á á á á<LinePlacement />
á á á á á áá</LabelPlacement>
á á á á á áá<Halo>
á á á á á á áá<Radius>2</Radius>
á á á á á á áá<Fill>
á á á á á á á áá<CssParameter name="fill">#ffffff</CssParameter>
á á á á á á á áá<CssParameter name="fill-opacity">0.7</CssParameter>
á á á á á á áá</Fill>
á á á á á áá</Halo>
á á á á á áá<Fill>
á á á á á á áá<CssParameter name="fill">#333333</CssParameter>
á á á á á áá</Fill>
á á á á á áá<VendorOption name="followLine">true</VendorOption>
á á á á á áá<VendorOption name="spaceAround">10</VendorOption>
á á á á á áá<VendorOption name="group">yes</VendorOption>
á á á á á áá<VendorOption name="repeat">100</VendorOption>
á á á á áá</TextSymbolizer>
á á á áá</Rule>á á
á á áá</FeatureTypeStyle>
á áá</UserStyle>
áá</UserLayer>
</StyledLayerDescriptor>
------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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