Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mssql] More sensible srid when adding CRS to MS SQL database
The spatial_ref_sys table has srid column with ID of CRS entries. I believe the IDs can be arbitrary, however it has been a good habit to use EPSG number for srid (at least in GDAL - and the same thing happens in PostGIS - srid values are the same as EPSG numbers). In QGIS import if we add a new row to spatial_ref_sys table, the code was using srsid() as ID which is internal ID in QGIS srs.db and it has nothing to do with other IDs. Some pieces of code (probably incorrectly) expect that srid is actually the EPSG number, so let's use those so that we are consistent with GDAL and fix these minor issues (for example, tooltip of MS SQL layers in browser show srid - which in case of layers loaded with QGIS were meaningless)
- Loading branch information
Showing with 2 additions and 2 deletions.