Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When upgrading an old database with french IGN #448

wants to merge 1 commit into from


Copy link

commented Jul 18, 2019

No description provided.

strk pushed a commit that referenced this pull request Jul 19, 2019

Dealing with IGN SRIDs from Michel Philippenko
references #448  
for PostGIS 2.5

git-svn-id: b70326c6-7e19-0410-871a-916f4a2858ee

@strk strk closed this in 5a1818e Jul 19, 2019


This comment has been minimized.

Copy link

commented Jul 19, 2019

Using this method, I had no more problems when doing my hard upgrade of my database :-) As I could understand, the old SRIDs, which belong to old IGN system and are out of range, correspond to new SRID which are inside the right range. Here is an example in my case :

OLD database : SELECT srtext FROM spatial_ref_sys where srid=310423221;
returns :
PROJCS["St Pierre et Miquelon 1950",GEOGCS["St Pierre et Miquelon 1950 ",DATUM["St Pierre et Miquelon 1950",SPHEROID["Clarke 1866",6378206.4000,294.9786982000000,AUTHORITY["IGNF","ELG004"]],TOWGS84[-95.5930,573.7630,173.4420,-0.9602,1.2510,-1.3918,42.626500],AUTHORITY["IGNF","REG423"]],PRIMEM["Greenwich",0.000000000,AUTHORITY["IGNF","LGO01"]],UNIT["degree",0.01745329251994330],AXIS["Longitude",EAST],AXIS["Latitude",NORTH],AUTHORITY["IGNF","STPM50GEO"]],PROJECTION["Transverse_Mercator",AUTHORITY["IGNF","PRC0221"]],PARAMETER["semi_major",6378206.4000],PARAMETER["semi_minor",6356583.8000],PARAMETER["latitude_of_origin",0.000000000],PARAMETER["central_meridian",-57.000000000],PARAMETER["scale_factor",0.99960000],PARAMETER["false_easting",500000.000],PARAMETER["false_northing",0.000],UNIT["metre",1],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["IGNF","STPM50UTM21"]]

New database after hard upgrade with indicated method: SELECT srtext FROM spatial_ref_sys where srid=911423;
returns :
GEOCCS["St Pierre et Miquelon 1950",DATUM["St Pierre et Miquelon 1950",SPHEROID["Clarke 1866",6378206.4000,294.9786982000000,AUTHORITY["IGNF","ELG004"]],TOWGS84[-95.5930,573.7630,173.4420,-0.9602,1.2510,-1.3918,42.626500],AUTHORITY["IGNF","REG423"]],PRIMEM["Greenwich",0.000000000,AUTHORITY["IGNF","LGO01"]],UNIT["metre",1],AXIS["X",OTHER],AXIS["Y",EAST],AXIS["Z",NORTH],AUTHORITY["IGNF","STPM50"]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.