Changes between Version 5 and Version 6 of RenderingOsmDataUbuntu


Ignore:
Timestamp:
Aug 9, 2011, 1:20:43 PM (13 years ago)
Author:
dmorissette
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RenderingOsmDataUbuntu

    v5 v6  
    132132 * Update mapserver-utils's osm-base.map and Makefile as follows:
    133133{{{
     134  vi osm-base.map
    134135-------------------8<------------------------
    135 Index: osmbase.map
    136 ===================================================================
    137 --- osmbase.map (revision 83)
    138 +++ osmbase.map (working copy)
    139 @@ -7,6 +7,7 @@
    140  SIZE 800 800
    141  EXTENT 47586 1621243 1197769 2679357
    142  EXTENT 16805492 -4049385 16857351 -3975830
    143 +EXTENT -20000000 -20000000 20000000 20000000
    144  UNITS OSM_UNITS
    145  IMAGECOLOR _ocean_clr0
    146  WEB
    147 @@ -16,6 +17,8 @@
    148        "labelcache_map_edge_buffer" "-10"
    149        "wms_title" "osm france"
    150     END
    151 +   IMAGEPATH "/tmp/ms_tmp/"
    152 +   IMAGEURL "/ms_tmp/"
     136  WEB
     137...
     138    IMAGEPATH "/tmp/ms_tmp/"
     139    IMAGEURL "/ms_tmp/"
    153140 END
    154  
    155  DEBUG _debug
    156 Index: Makefile
    157 ===================================================================
    158 --- Makefile    (revision 83)
    159 +++ Makefile    (working copy)
    160 @@ -1,11 +1,12 @@
    161 -CPP=cpp
    162 +CPP=cpp-4.4
    163  
    164  OSM_PREFIX=osm_new_
    165  OSM_SRID=4326
    166 -OSM_UNITS=dd
    167 +OSM_SRID=900913
    168 +OSM_UNITS=meters
    169  OSM_WMS_SRS="EPSG:900913 EPSG:4326 EPSG:3857 EPSG:2154 EPSG:310642901 EPSG:4171 EPSG:310024802 EPSG:310915814 EPSG:310486805 EPSG:310702807 EPSG:310700806 EPSG:310547809 EPSG:310706808 EPSG:310642810 EPSG:310642801 EPSG:310642812 EPSG:310032811 EPSG:310642813 EPSG:2986"
    170 -DEBUG=1
    171 -LAYERDEBUG=1
    172 +DEBUG=2
    173 +LAYERDEBUG=2
    174  
    175  template=osmbase.map
    176 
     141...
    177142-------------------->8-----------------------
     143
     144  vi Makefile
     145-------------------8<------------------------
     146OSM_SRID=900913
     147OSM_UNITS=meters
     148OSM_EXTENT=-20000000 -20000000 20000000 20000000
     149...
     150STYLE=google
     151-------------------->8-----------------------
     152}}}
     153 * Create MapServer temp dirs (required by mapserv CGI for testing with openlayers template)
     154{{{
     155  mkdir /tmp/ms_tmp
     156  chmod 777 /tmp/ms_tmp
    178157}}}
    179158
     
    183162  make
    184163}}}
    185  * Create MapServer temp dirs (required by mapserv CGI for testing with openlayers template)
    186 {{{
    187   mkdir /tmp/ms_tmp
    188   chmod 777 /tmp/ms_tmp
    189 }}}
     164 * The 'make' command will have generated a osm-google.map based on the parameters in the generate_style.py script.
     165 * More information about tweaking the map styles is availanble at http://code.google.com/p/mapserver-utils/wiki/TweakingMapStylesImposm
    190166
    191167 * Access your map online using MapServer's built-in template=openlayers mode:
    192168{{{
    193 http://yourserver.tld/cgi-bin/mapserv?map=/path/to/osm-demo/mapserver-utils-svn-imposm/osm.map&mode=browse&template=openlayers&layers=all
     169http://yourserver.tld/cgi-bin/mapserv?map=/path/to/osm-demo/mapserver-utils-svn-imposm/osm-google.map&mode=browse&template=openlayers&layers=all
    194170}}}
    195171