Changes between Version 14 and Version 15 of RenderingOsmData


Ignore:
Timestamp:
Jun 28, 2010, 6:30:12 AM (14 years ago)
Author:
tbonfort
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RenderingOsmData

    v14 v15  
    3434==== Preparing the postgis database ====
    3535
    36 We'll assume that the data will be imported into a database named {{{osm}}}. We will also add the 900913 crs, and grant access to a {{{www-data}}} user.
     36We'll assume that the data will be imported into a database named {{{osm}}}. We will also grant access to a {{{www-data}}} user.
    3737On a debian-ish system, this goes like:
    3838
     
    5151}}}
    5252
    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 
     53And run create the www-data user:
     54
     55{{{
    6956create user "www-data" with password 'www-data';
    7057}}}
    7158
    72 now add the 900913 projection to your epsg database (usually in /usr/share/proj/epsg):
     59eventually add the 900913 projection to your epsg database if it isn't already present (usually in /usr/share/proj/epsg):
    7360{{{
    7461<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
     
    8168
    8269{{{
    83 # osm2pgsql -d osm -p osm -s  -C 1024 /path/to/australia.osm.bz2
     70# osm2pgsql -l -d osm -p osm -s  -C 1024 /path/to/australia.osm.bz2
    8471}}}
    8572