180 likes | 342 Views
Extension to Geoserver for reading ESRI Mapcaches. 62O. FOSS4G 2009, Sidney Friday 23 october Parkside auditorium. 62 O north. Mauritz Bomark System architect Lantmäteriet, Sweden mauritz.bomark@lm.se. Pär Jonsson Project manager Lantmäteriet, Sweden par.jonsson@lm.se.
E N D
Extension to Geoserver for reading ESRI Mapcaches 62O • FOSS4G 2009, Sidney • Friday 23 october • Parkside auditorium 62O north Mauritz Bomark System architect Lantmäteriet, Sweden mauritz.bomark@lm.se Pär Jonsson Project manager Lantmäteriet,Sweden par.jonsson@lm.se
About Lantmäteriet • The leading producer in Sweden of geographic databases and maps. • Responsible for property formation and land authority. • Provide an extensive amount of geospatial data to the market.
About Lantmäteriet • The total staff is approx. 2,000. • and 10 % is working at the IT-department. • The head office is situated in Gävle, 200 km north of Stockholm
New requirement's and directives concerning geodata • New SDI – in-house department to department • New NSDI - government to government • PSI – private to government • Inspire (EU) - country to country Basis for all new requirement's is maps with high availability!
Business requirements for viewing services? • Standardized web map • Pretty map • Flexible map • Fast map • Up-to-date map • Multi Sweden map
WMS Standard web map • Available via WebMapService-interface • Support both tiling and non-tiling clients • An implementation that fits in our enterprise architecture (java)
Pretty map • A new map product for screen presentation with: • High quality cartography • Harmonized cartography • Soft colors • Scale dependent symbolization (i.e symbol and text placement) • No manual cartographic treatment Map
WMS server • Fast map • A fast WMS-solution (<1,5 sek) • Flexible map • A flexible layered WMS-solution Head office
Up-to-date map • Updated maps on a daily basis • Fast cartographic treatment in runtime • Multi Sweden map • Cover Sweden • Include data from all 6 map series Map
WMS Design solution • Geoserver for serving WMS • Architecture • Tile pyramid plugin • Geoservers Geotools Grid Coverage integration • Reads ESRI mapCache • Pre rendered tile pyramids • Performance, intelligent updating • Several choices identified – image pyramid & image mosaic, GeoWebCache, Tilecache, mapCache… • ESRI’s mapCache feature in ArcGIS server • Extensive ESRI use in production lines for our map databases • High quality cartography - mxd WMS server TPP Map Production environment
ESRI mapCache format • /L00/R0000029f/C00000280.jpg • L00: Level ID • R0000029f: Cache tile row in padded hexadecimal format • C00000280.jpg: Cache tile column in padded hexadecimal format • conf.xml – meta data (levels, spatial reference, image format, image size, image resolution etc) WMS server TPP Map
WMS Getmap Flow WMS server • Getmap request passed through Geoserver to the plugin (per layer) • Calculate level in the pyramid • Calculate tiles affected by the requested bbox • Read tiles and create JAI Mosaic • Crop according to bbox • Return GridCoverage to Geoserver • Resize to requested resolution • Merge layers • Return requested image TPP
Configuring the tile pyramid plugin WMS server • Configuration parameters • Standard Grid Format parameters (SRS, style etc) • LevelSelectionInterval (% between layers) • LowestValidResolution (m/pixel) • MaxImageSize (pixels) TPP 0% 100%
Experiences of Geoserver and the tile pyramid plugin • Server configuration • Java 1.6 • Native JAI • JAI-settings (Geoserver) • Garbage Collection (JVM)
Hardware configuration Web Server Apache WMS Proxy JBOSS LB JBOSS Dual Core 3Ghz 3 GB RAM JBOSS Dual Core 3Ghz 3 GB RAM GeoServer GeoServer
512*512 pixelsBilinear renderingPNG Performance 500ms delay 10 ms delay
Summary • Standard web map, WMS (WMTS) • Pretty map , quite pretty map • Flexible map, 12 layers • Fast map, speed enough! • Up-to-date map, intelligent updating is running • Sweden is covered! • 1 layer consists of 13 levels (0.5 m/p – 2480 m/p) -> approximately 45 million tiles/layer. • 12 layers -> 540 million tiles. • In production since july 2009, with both internal and external use • The source code for the Tilepyramid plugin is available!