mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
insert into tbl_srs (description, projection_acronym, ellipsoid_acronym, parameters, srid, auth_name, auth_id, is_geo, deprecated, noupdate) values ('Google Mercator','merc','WGS84','+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 +wktext +over +no_defs',900913,'EPSG','900913',0,0,0);
Updating the srs.db ------------------- The srs.db can be updated from the EPSG codes in the GDAL installation: 1) Install latest GDAL, be sure to configure with --with-python. 2) Set PATH and PYTHONDIR if installed GDAL in non-standard location. 3) Run 'scripts/qgis_srs.sh > new_srs.sql'. It may take a minute or two. 4) Run 'sqlite3 new_srs.db < new_srs.sql'.' 4) Run 'sqlite3 new_srs.db <postprocess_srs.sql' You can use sqlite3 to dump the contents from both srs.db and new_srs.db before you decide to commit. Magnus Homann 2009-08-19