22 Commits

Author SHA1 Message Date
ede8880e72 Update copyright date 2025-01-13 09:07:30 +01:00
7b6ed0d2bc Use anonymous namespace instead of static in test code
This is recommended in C++ Core Guidelines SF.22
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rs-unnamed2
2024-08-15 22:24:35 +02:00
ff91d49869 Update copyright date 2024-01-26 16:45:53 +01:00
7ba523ba37 Update copyright date to 2023 2023-01-15 16:13:42 +01:00
56d5145615 Updates copyright date to 2022 in all files 2022-01-11 14:30:34 +01:00
d45018f88b Update copyright year to 2021 2021-01-28 09:38:17 +01:00
61bdfb4bc5 Add/update copyright notice on all C++ files
This adds a copyright notice to all C++ files and the README clarifying
the license. (There is no change of the license.) This also removes a
few names explicitly mentioned as copyright holders, instead refering to
the git log which has a full list of all osm2pgsql developers. (There is
also still the AUTHORS file which names the most important developers.)

The only exception is the sprompt.cpp file which was taken from
PostgreSQL and keeps its original license information (and, of course,
the files in contrib).
2020-12-19 11:25:07 +01:00
2a339a7980 Extended schema support to middle and pgsql/multi output
There was already support in progress for schemas in the flex backend,
which is likely to replace the pgsql backend at some point. Until then,
it's useful to be able to import data directly into a schema.

This is the original PR from Matt Amos with some changes from me: There
are two different options now for setting the schema for the middle and
the pgsql output, respectively. There are some docs and tests now.
2020-10-14 10:49:09 +02:00
56927b8cfb Move catch2 into contrib, update to current version
This way it can be included as system include and is easier to set apart
in coverage checks etc.
2019-11-20 12:14:00 +01:00
069c2830ec clang-format tests 2019-11-15 21:52:42 +01:00
8859b6eb8e move new tests into place 2019-11-15 21:52:42 +01:00
8cd48cb506 port schema tests to catch 2019-11-15 21:52:41 +01:00
de71d16c62 initial implementation of buffer filling functions in db-copy 2019-02-16 22:03:05 +01:00
5eaaf99409 fix warnings appearing with -Wextra
This fixes pretty much exclusively unsued-parameter
warnings. Removes some function parameters which have
fallen out of use and also the permutating parameter
test. The latter did not really do what it promised
and was pretty much beyond repair.
2019-02-09 17:36:31 +01:00
b5809ed9a1 Hand outputs a shared pointer to the middle query object
Binds the lifetime of the middle objects to the outputs.
2019-01-13 12:02:47 +01:00
4ca2ed5f4b osmdata: remove unused projection member 2019-01-12 18:17:43 +01:00
c538ce4c82 do not handle extra attributes via parameter passthough
There are only three classes that really need the information
about extra attributes and they all already have access to the
options.
2016-12-11 23:37:51 +01:00
434000c1c1 make osmdata work directly with libosmium data types
Requires to move reprojection and addition of attributes into
the osmdata class.
2016-12-11 23:37:50 +01:00
79bc3cdb89 remove custom o5m parser in favour of libosmium parser
This commit includes some larger structural changes:

- parse_t and parse_delegate_t removed, osm2pgsql now directly
  creates a parse_osmium_t object
- bbox class replaced with osmium::Box
- code duplication in parse_stats_t cleaned up
- add generic parse() function for tests, also to avoid code duplication
2015-11-06 23:44:54 +01:00
34382ba8bd update to libosmium 2.3.0
- remove protobuf dependencies as libosmium now comes with its own pbf parser
- fix remaining uses of libxml2 as file format in tests
2015-08-19 00:10:31 +02:00
8845378bcd Move recurring DB test functions to common-pg 2015-07-30 00:27:53 -07:00
b638514fa4 Add a test for tables existing in another schema 2015-07-29 23:23:01 -07:00