QGIS/resources
Radim Blazek 792ac5a433 JTSK EPSG codes update, added new codes, updated existing.
INSERT INTO tbl_srs VALUES (NULL,'S-JTSK (Greenwich) / Krovak','krovak','bessel','+proj=krovak +lat_0=49.5 +lon_0=24.83333333333333 +alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=589,76,480,0,0,0,0 +pm=greenwich +units=m +no_defs',5513,'EPSG','5513',0,0);

INSERT INTO tbl_srs VALUES (NULL,'S-JTSK (Greenwich) / Krovak East North','krovak','bessel','+proj=krovak +lat_0=49.5 +lon_0=24.83333333333333 +alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=589,76,480,0,0,0,0 +pm=greenwich +units=m +no_defs',5514,'EPSG','5514',0,0);

INSERT INTO tbl_srs VALUES (NULL,'S-JTSK (Ferro) / Krovak East North','krovak','bessel','+proj=krovak +lat_0=49.5 +lon_0=42.5 +alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=589,76,480,0,0,0,0 +pm=ferro +units=m +no_defs',5221,'EPSG','5221',0,0);

-- Add alpha to 2065
UPDATE tbl_srs set parameters = '+proj=krovak +lat_0=49.5 +lon_0=42.5 +alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=589,76,480,0,0,0,0 +pm=ferro +units=m +no_defs'  WHERE auth_id = '2065';

-- Add towgs84 to 102067
UPDATE tbl_srs set description = 'S-JTSK (Greenwich) / Krovak East North', parameters = '+proj=krovak +lat_0=49.5 +lon_0=24.83333333333333 +alpha=30.28813972222222 +k=0.9999 +x_0=0 +y_0=0 +ellps=bessel +towgs84=589,76,480,0,0,0,0 +pm=greenwich +units=m +no_defs', deprecated = 1 WHERE auth_id = '102067';
2013-05-31 14:42:44 +02:00
..
2013-05-03 21:39:28 +02:00
2013-05-20 16:48:51 +02:00

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