Commit Graph
35 Commits
Author SHA1 Message Date
Even Rouault 28f4486331 Database: create a undeprecated copy of EPSG:9123 grid transformation 'NAD83(CSRS) to CGVD28 height (1)' (fixes #3328) 2022-09-20 15:26:45 +02:00
Jan Vaillant 424be5cc0b Database: add ON DELETE CASCADE to table schemas to help minimizing database size (#3237)
Fixes #3022
2022-07-01 20:33:49 +02:00
Even Rouault 1720b0586c Database: add a ANALYZE step during proj.db creation
This will create the sqlite_stat* table (generally sqlite_stat1). This
speeds up a bit the test suite. Runtime of ``make test_cpp_api-check``
goes from the range [14.0 s, 14.6 s] to [13.0s, 13.5s] on my machine.
2021-05-23 00:48:25 +02:00
Even Rouault fc6ff7a481 Merge pull request #2647 from rouault/integer_or_text
Database: decrease db size
2021-04-08 19:29:54 +02:00
Even Rouault b5d3f2a250 Database: more thorough consistency checks on extent of coordinate operations 2021-04-07 12:49:54 +02:00
Even Rouault 950ce787b2 Database: nullify auth_name, code of usage table
We never select by those columns, so don't set them. Reduce from 8.4 to
7.9 MB.

Upgrade the minor version of the database layout. (that database can
still be read by PROJ 8.0)
2021-04-06 23:30:19 +02:00
Even Rouault ea624e0d29 Database: more consistency checks on helmert_transformation and grid_transformation 2021-04-06 23:28:14 +02:00
Even Rouault 399a833219 Database: add a PROJ.VERSION metadata entry 2021-04-04 20:09:00 +02:00
Even Rouault c8e0c2c14b Database: update to EPSG v10.018
Just fixes 4 wrong transformations of v10.017
2021-04-02 17:35:41 +02:00
Even Rouault 17b42f68f3 Database: stronger checks on extent of grid_transformation regarding the extent of the source and target CRS 2021-04-01 22:45:23 +02:00
Even Rouault dbf4789414 Database: add extra check for 'Vertical Offset by Grid Interpolation' transformations 2021-04-01 22:26:12 +02:00
Even Rouault a028ecd97b Database: refine checks for 'Geog3D to Geog2D+XXX' transformations, and create less synthetic 'Geographic3D to GravityRelatedHeight' synthetic transformations 2021-04-01 22:20:21 +02:00
Even Rouault e6a0966a47 Database: update to EPSG 10.017 2021-04-01 15:59:35 +02:00
Even Rouault 14ce3d9fa8 Build: simplify proj.db generation (#2605)
- change foreign key check, so that it is enabled outside of the
  transaction where we insert things, and can make the sqlite3
  process fail in case of violations, without the postcheck done
  in the autoconf build
- autoconf and cmake builds: simplification related to the above
  (which also means that cmake builds now have the fkey check, which
  was omitted until now)
2021-03-26 12:49:35 +01:00
Nyall Dawson 7c52fed34c Update to EPSG v10.015 2021-02-19 13:26:23 +10:00
Even Rouault d3a6ca45ad Database: update to EPSG v10.014 2021-02-11 11:06:49 +01:00
Even Rouault c72dabdc3f Database: update to EPSG v10.013 2021-02-09 19:46:25 +01:00
Even Rouault fece8a6c6e Database: add aliases for 'old' names of WGS84 and ETRS89 datums, and remove one hack 2020-10-08 17:31:56 +02:00
Even Rouault ff9a386c72 Database: import datum ensemble accuracy and members (but do not use them) 2020-10-08 17:31:55 +02:00
Even Rouault a9b6f39494 Database: "minimal" update to EPSG v10.003
Content mostly unchanged since v9.9

This update is "minimal" in that it mostly reflects the removal of the 'area'
table, replaced now by 'extent', 'scope' and 'usage'

Other new aspects of EPSG v10 are left aside.
2020-10-06 23:48:52 +02:00
Even Rouault a24cf969aa Database: make sure we can deal with 'Geog3D to Geog2D+GravityRelatedHeight' records as we do with the more common 'Geographic3D to GravityRelatedHeight' 2020-06-06 22:24:14 +02:00
Even Rouault da32ee9459 Database: fix registration of custom entries of grid_transformation_custom.sql for geoid grids (fixes #2112) 2020-03-30 12:57:03 +02:00
Even Rouault 1f8541d6f4 Database: update to EPSG v9.8.7 2020-02-26 14:04:09 +01:00
Even Rouault a1b1c4312e Database: add a custom concatenated_operation for NTF (Paris) to RGF93, using the non-deprecated EPSG:9327 for the geocentric translation 2020-01-30 14:14:12 +01:00
Even Rouault 680d1eb93b Implement RFC 5 2020-01-25 02:23:18 +01:00
Even Rouault ffcd6253bb Database: update to EPSG v9.8.6
Fixes #1867
2020-01-22 22:31:44 +01:00
Even Rouault 325ebcafd3 Database: add consistency checks of transformation area of use w.r.t source/target CRS one 2019-12-21 11:36:20 +01:00
Even Rouault 5b1346e95c Database: add/fix consistency checks 2019-12-21 02:41:28 +01:00
Even Rouault e7ef9b626e Database: fix registration of Icegeoid_xxx.gtx files, and add corresponding entries in grid_alternatives.sql 2019-12-21 02:13:07 +01:00
Even Rouault 3a035e99f7 Make EPSG:102100 resolve to ESRI:102100 (fixes #1730) 2019-12-11 22:09:05 +01:00
Even Rouault dc55b17d0c Database: register the BWTA2017.gsb grid (DHDN->ETRS89 for Baden-Wurtemberg)
Relates to https://github.com/OSGeo/proj-datumgrid/pull/65 ,
https://github.com/OSGeo/proj-datumgrid/issues/22

As EPSG has no entry for it, we create a grid_transformation, as well as a
dedicated area of use based on the extent of the grid, under the PROJ authority.
With the hope to be able to remove it once EPSG has an entry...
2019-12-02 15:57:40 +01:00
Even Rouault 7492e65bfe Add a geoid_model name in database, use GEOIDMODEL for transformations, add a proj_create_vertical_crs_ex() 2019-11-02 22:28:54 +01:00
Even Rouault e63f206d99 Database: make conversion & helmert_transformation updatable views
- Transform conversion as a view, and when inserting into it, actually
  insert into 3 tables: conversion_table, conversion_method and conversion_param,
  so that method and parameter names are not repeated each time.
- Similarly for helmert_tranformation, insert into helmert_transformation_tabl
  and coordinate_operation_method.

This reduces the db size from 6 344 704 bytes to 5 853 184 bytes, without
significant slowdown for queries.
2019-04-22 15:49:31 +02:00
Even Rouault 263b259b27 Various speed optimizations 2018-12-07 18:22:28 +01:00
Even Rouault d928db15d5 Implement RFC 2: Initial integration of "GDAL SRS barn" work
This work mostly consists of:
- a C++ implementation of the ISO-19111:2018 / OGC Topic 2
  "Referencing by coordinates" classes to represent Datums,
  Coordinate systems, CRSs (Coordinate Reference Systems) and
  Coordinate Operations.
- methods to convert between this C++ modeling and WKT1, WKT2
  and PROJ string representations of those objects
- management and query of a SQLite3 database of CRS and Coordinate Operation definition
- a C API binding part of those capabilities

This is all-in-one squashed commit of the work of
https://github.com/OSGeo/proj.4/pull/1040
2018-11-14 22:48:29 +01:00