source: osmose-backend/setup_bdd.sh

Last change on this file was bbb961d, checked in by Nelson A. de Oliveira <naoliv@…>, 5 years ago

Remove old references to osm2pgsql

  • Property mode set to 100755
File size: 963 bytes
Line 
1#! /bin/sh
2
3sudo -u postgres psql -d osmose -f /usr/share/postgresql/8.3/contrib/fuzzystrmatch.sql
4sudo -u postgres psql -d osmose -f /usr/share/postgresql-8.3-postgis/spatial_ref_sys.sql
5
6cat <<EOF | sudo -u postgres psql -d osmose
7INSERT INTO spatial_ref_sys (srid, auth_name, auth_srid, srtext, proj4text)VALUES (900913,'EPSG',900913,'PROJCS["WGS84 / Simple Mercator",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS_1984", 6378137.0, 298.257223563]],PRIMEM["Greenwich", 0.0],UNIT["degree", 0.017453292519943295],AXIS["Longitude", EAST],AXIS["Latitude", NORTH]],PROJECTION["Mercator_1SP_Google"],PARAMETER["latitude_of_origin", 0.0],PARAMETER["central_meridian", 0.0],PARAMETER["scale_factor", 1.0],PARAMETER["false_easting", 0.0],PARAMETER["false_northing", 0.0],UNIT["m", 1.0],AXIS["x", EAST],AXIS["y", NORTH],AUTHORITY["EPSG","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');
8EOF
Note: See TracBrowser for help on using the repository browser.