Changes between Version 17 and Version 18 of RenderingOsmDataUbuntu
- Timestamp:
- Aug 12, 2011, 3:07:52 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RenderingOsmDataUbuntu
v17 v18 116 116 117 117 * Website: http://code.google.com/p/mapserver-utils/ 118 * Check out the 'imposm-branch' from SVN: 118 * There are two branches of the mapserver-utils project that can be used, depending on your needs: 119 * The 'imposm-branch' contains the latest and greatest developments from Thomas bonfort, with a focus on France data 120 * The 'imposm-dm-branch' is focused on Canada/US data, and contains supports for things such as US highway shields. 121 * To use the 'imposm-dm-branch' from SVN: 119 122 {{{ 120 123 cd ~/osm-demo/ 121 124 svn checkout http://mapserver-utils.googlecode.com/svn/branches/imposm-branch/ mapserver-utils-svn-imposm 122 125 cd mapserver-utils-svn-imposm 123 }}} 124 * Update mapserver-utils's osmbase.map and Makefile as follows: 125 {{{ 126 ... no files to edit, the changes listed for the imposm-branch below are already included in the imposm-dm-branch 127 }}} 128 * To use the 'imposm-branch' from SVN: 129 {{{ 130 cd ~/osm-demo/ 131 svn checkout http://mapserver-utils.googlecode.com/svn/branches/imposm-branch/ mapserver-utils-svn-imposm 132 cd mapserver-utils-svn-imposm 133 134 ... Update mapserver-utils's osmbase.map and Makefile as follows: 126 135 vi osm-base.map 127 136 -------------------8<------------------------ … … 151 160 * Execute the mapserver-utils makefile to generate the mapfile. Note that the first time you run 'make' several large files will be downloaded (country boundaries, etc.). This will happen only the first time. 152 161 {{{ 153 cd ~/osm-demo/mapserver-utils-svn-imposm162 cd mapserver-utils-svn-imposm 154 163 make 155 164 }}} 156 * The 'make' command will have generated a osm-google.map based on the parameters in the generate_style.py script.165 * The 'make' command will have generated the mapfile based on the parameters in the generate_style.py script (either osm-outlined,google,usshields.map or osm-outlined,google.map depending on the branch that you chose above). 157 166 * More information about tweaking the map styles is available at http://code.google.com/p/mapserver-utils/wiki/TweakingMapStylesImposm 158 167 159 168 * Access your map online using MapServer's built-in template=openlayers mode: 160 169 {{{ 170 http://yourserver.tld/cgi-bin/mapserv?map=/path/to/osm-demo/mapserver-utils-svn-imposm/osm-outlined,google,usshields.map&mode=browse&template=openlayers&layers=all 171 or 161 172 http://yourserver.tld/cgi-bin/mapserv?map=/path/to/osm-demo/mapserver-utils-svn-imposm/osm-outlined,google.map&mode=browse&template=openlayers&layers=all 162 173 }}} … … 197 208 <url>http://localhost/cgi-bin/mapserv?</url> 198 209 </http> 199 ... 210 211 ... 212 <MAP>/path/to/osm-demo/mapserver-utils-svn-imposm/osm-outlined,google,usshields.map</MAP> 213 ... or ... 200 214 <MAP>/path/to/osm-demo/mapserver-utils-svn-imposm/osm-outlined,google.map</MAP> 201 215 ...