Difference between revisions of "Benchmarking 2010/Mapnik notes"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | = Mapnik Processing Notes = | + | = Mapnik Processing Notes = |
− | ''(for the [[ | + | ''(for the [[Benchmarking 2010]] exercise)'' |
− | == Installation == | + | == Installation == |
− | Exact Installation details can be seen at: http://svn.osgeo.org/osgeo/foss4g/benchmarking/mapnik/scripts/install_mapnik_rhel_5.5.sh | + | Exact Installation details can be seen at: http://svn.osgeo.org/osgeo/foss4g/benchmarking/mapnik/scripts/install_mapnik_rhel_5.5.sh |
− | Library versions used: | + | Library versions used: |
* libxml2-2.7.7 | * libxml2-2.7.7 | ||
Line 21: | Line 21: | ||
* libjpeg from RHEL packages - old | * libjpeg from RHEL packages - old | ||
− | Mapnik versions used: | + | Mapnik versions used: |
− | * 0.7.2 pre-release - http://trac.mapnik.org/milestone/0.7.2 | + | *0.7.2 pre-release - http://trac.mapnik.org/milestone/0.7.2 |
− | * Trunk (aka Mapnik2) | + | *Trunk (aka Mapnik2) |
− | WMS Servers being tested: | + | WMS Servers being tested: |
− | * | + | *paleoserver - trunk - http://github.com/springmeyer/paleoserver |
− | * | + | *mod_mapnik_wms - trunk - http://wiki.openstreetmap.org/wiki/Mod_mapnik_wms |
− | == shpindex depth == | + | == shpindex depth == |
− | As Mapnik's shapeindex utility does not have optimized defaults, I matched the Mapserver depths used exactly ([[ | + | <strike>As Mapnik's shapeindex utility does not have optimized defaults, I matched the Mapserver depths used exactly (</strike>[[Shptree notes|<strike>Shptree notes</strike>]]<strike>)</strike>: |
+ | |||
+ | I found that deeper trees did not have [http://trac.mapnik.org/ticket/593 much benefit] so (instead of what is listed below) I simply used the default depth of 8 (which is what is used if no options are specified) | ||
:: | :: | ||
+ | |||
shapeindex -d 21 building.shp | shapeindex -d 21 building.shp | ||
− | + | shapeindex -d 16 contour-0.shp | |
− | + | shapeindex -d 17 contour-1.shp | |
− | + | shapeindex -d 17 contour-2.shp | |
− | + | shapeindex -d 17 contour-3.shp | |
− | + | shapeindex -d 17 contour-4.shp | |
− | + | shapeindex -d 15 contour-5.shp | |
− | + | shapeindex -d 17 contour-6.shp | |
− | + | shapeindex -d 17 contour-7.shp | |
− | + | shapeindex -d 17 industry.shp | |
− | + | shapeindex -d 10 motorway.shp | |
− | + | shapeindex -d 15 point-labels-for-geometry.shp | |
− | + | shapeindex -d 18 point-labels-no-geometry.shp | |
− | + | shapeindex -d 14 ramp.shp | |
− | + | shapeindex -d 14 road.shp | |
− | + | shapeindex -d 16 settlement.shp | |
− | + | shapeindex -d 16 track.shp | |
− | |||
[[Category:FOSS4G2010]] [[Category:FOSS4G]] | [[Category:FOSS4G2010]] [[Category:FOSS4G]] |
Revision as of 12:56, 6 September 2010
Mapnik Processing Notes
(for the Benchmarking 2010 exercise)
Installation
Exact Installation details can be seen at: http://svn.osgeo.org/osgeo/foss4g/benchmarking/mapnik/scripts/install_mapnik_rhel_5.5.sh
Library versions used:
* libxml2-2.7.7 * zlib-1.2.5 * libpng-1.4.3 * freetype-2.4.1 * proj-4.7.0 * icu4c-4_4_1 * boost_1_43_0 * httpd-2.2.16 (only used for mod_mapnik_wms) * gdal-1.7.2 (used only for raster plugin) * postgis from RHEL packages - 8.1 headers * libjpeg from RHEL packages - old
Mapnik versions used:
- 0.7.2 pre-release - http://trac.mapnik.org/milestone/0.7.2
- Trunk (aka Mapnik2)
WMS Servers being tested:
- paleoserver - trunk - http://github.com/springmeyer/paleoserver
- mod_mapnik_wms - trunk - http://wiki.openstreetmap.org/wiki/Mod_mapnik_wms
shpindex depth
As Mapnik's shapeindex utility does not have optimized defaults, I matched the Mapserver depths used exactly (Shptree notes):
I found that deeper trees did not have much benefit so (instead of what is listed below) I simply used the default depth of 8 (which is what is used if no options are specified)
shapeindex -d 21 building.shp shapeindex -d 16 contour-0.shp shapeindex -d 17 contour-1.shp shapeindex -d 17 contour-2.shp shapeindex -d 17 contour-3.shp shapeindex -d 17 contour-4.shp shapeindex -d 15 contour-5.shp shapeindex -d 17 contour-6.shp shapeindex -d 17 contour-7.shp shapeindex -d 17 industry.shp shapeindex -d 10 motorway.shp shapeindex -d 15 point-labels-for-geometry.shp shapeindex -d 18 point-labels-no-geometry.shp shapeindex -d 14 ramp.shp shapeindex -d 14 road.shp shapeindex -d 16 settlement.shp shapeindex -d 16 track.shp