Changes between Version 14 and Version 15 of RenderingOsmData
- Timestamp:
- Jun 28, 2010, 6:30:12 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RenderingOsmData
v14 v15 34 34 ==== Preparing the postgis database ==== 35 35 36 We'll assume that the data will be imported into a database named {{{osm}}}. We will also add the 900913 crs, andgrant access to a {{{www-data}}} user.36 We'll assume that the data will be imported into a database named {{{osm}}}. We will also grant access to a {{{www-data}}} user. 37 37 On a debian-ish system, this goes like: 38 38 … … 51 51 }}} 52 52 53 And run these two commands: 54 55 {{{ 56 INSERT INTO spatial_ref_sys (srid, auth_name, auth_srid, srtext, proj4text) 57 VALUES (900913, 'spatialreference.org', 900913, 58 'PROJCS["unnamed",GEOGCS["unnamed ellipse",DATUM["unknown", 59 SPHEROID["unnamed",6378137,0]],PRIMEM["Greenwich",0], 60 UNIT["degree",0.0174532925199433]],PROJECTION["Mercator_2SP"], 61 PARAMETER["standard_parallel_1",0],PARAMETER["central_meridian",0], 62 PARAMETER["false_easting",0],PARAMETER["false_northing",0], 63 UNIT["Meter",1], 64 EXTENSION["PROJ4","+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 65 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"]]', 66 '+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 67 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs'); 68 53 And run create the www-data user: 54 55 {{{ 69 56 create user "www-data" with password 'www-data'; 70 57 }}} 71 58 72 now add the 900913 projection to your epsg database(usually in /usr/share/proj/epsg):59 eventually add the 900913 projection to your epsg database if it isn't already present (usually in /usr/share/proj/epsg): 73 60 {{{ 74 61 <900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs … … 81 68 82 69 {{{ 83 # osm2pgsql - d osm -p osm -s -C 1024 /path/to/australia.osm.bz270 # osm2pgsql -l -d osm -p osm -s -C 1024 /path/to/australia.osm.bz2 84 71 }}} 85 72