Commit Graph

566 Commits

Author SHA1 Message Date
aa6e968bce Pre-load fonts so map's local font cache is populated (#334) 2023-09-21 09:52:04 +02:00
24a5752d93 Fixed various CI failures (#328)
* Fix `Unknown argument "--skip-broken" for command "dnf5"`

* Increase timeout for `render_list` & `render_old` tests

* Sync FreeBSD build command with others (and build Release by default)

* Fix non-default tile tests

* Fixed WEBP test for `libwebp.so.4`
2023-07-21 04:52:22 +02:00
f652ab1521 Configurable ImageIO output format (#318)
* Added the possibility to provide ImageIO's output format in the TYPE string.
For instance:
TYPE=png image/png
TYPE=png image/png png256
TYPE=png image/png png24
TYPE=png image/png png

* Removed useless comments.
Added documentation for output format.

* Added tests for 'webp' output format

* Also added tests for 'png32' output format

* Fix 'webp' sums vary based on version

* Add JPG & use multiple layers on example-map

---------

Co-authored-by: Tim <autintim@gmail.com>
2023-07-20 23:41:18 +02:00
2287afe604 Updated Documentation (#320)
* Update docs

* Added `macOS` build documentation link to README
2023-07-20 23:35:20 +02:00
6e20fba5e9 Generate config files and directories with CMake (#316)
* Generate config files and directories with CMake

CMake >= 3.13 required due to 'https://cmake.org/Bug/view.php?id=14444'

* Update CI pipeline
2023-07-20 23:34:21 +02:00
fbf4c7eb8b Added ability to customize HTTP server module installation directory (#321) 2023-07-20 09:33:48 +00:00
708527591a Add coverage reporting support (#313)
* Add coverage reporting

* No longer need to run `astyle` from within a container

* Multiple test runs seems to help catch more coverage

* Re-order renderd shutdown processes

* Move coverage job into a new workflow
2023-07-20 09:28:53 +00:00
d408481e3a Add a few more tests for render_* (#315) 2023-07-20 09:27:37 +00:00
71c831df42 Mapnik is now in FreeBSD's package repositories (#319) 2023-07-20 09:27:08 +00:00
e50836f7c1 Make macOS 13 the default macOS version in GitHub Actions (#322) 2023-07-20 09:26:15 +00:00
5d9fcda99f Replace Fedora 36 with Fedora 38 in GitHub Actions (#323) 2023-07-20 09:25:23 +00:00
5d70617e9d Replace Debian 10 with Debian 12 in GitHub Actions (#325) 2023-07-20 09:25:03 +00:00
f521540df1 Allow renderd* sections to follow map sections in renderd.conf (#308)
* Allow `renderd*` sections to precede `map` sections in config file

* Adding test

* astyle formatting
2023-03-09 15:58:00 +00:00
be0d5fe256 Add docs on how to compile on Debian 12 (#309)
* Copy the Ubuntu 20.04 docs to Debian 12

* Update debian docs to refer to proper location of example map

* update debian docs to match what mapnik installs

* Update debian docs to match the installed URL

* Link to debian docs in README
2023-03-03 17:30:04 +00:00
07c8ad19f7 Test CMake build system support in GitHub Actions (#288)
* GitHub Actions

* Consolidate Mapnik v3/v4 builds into one workflow

* Removed pkg-config from macos-build-dependencies

* Simplify FreeBSD build

* Remove now-merged patch from install latest Mapnik action
2023-03-03 17:24:29 +00:00
d8a0f29cfe Add support for building for Mapnik 4 (#305) 2023-03-01 12:03:03 +00:00
f4ee376b35 Build mod_tile with cmake 2023-03-01 11:57:10 +00:00
6c8a1d9aec Fix numerous flawfinder issues in src/gen_tile_test.cpp 2023-02-23 15:56:11 +00:00
235d53026b Fix 'Wrong type of arguments to formatting function' alerts 2023-02-23 15:56:11 +00:00
7dacc63195 Don't forget Makefile.am 2023-02-19 08:25:15 +00:00
28a3d0faa2 Allow for iniparser.h in either iniparser.h or iniparser/iniparser.h 2023-02-19 08:25:15 +00:00
db3c169053 Adjusted header include enclosures to indicate system headers are expected. 2023-02-19 08:23:57 +00:00
91a08f5ccb Fix macOS build support 2023-02-19 08:23:12 +00:00
6e2ac992da Fixed typo HAVE_SYS_CDEFS_C, it should be HAVE_SYS_CDEFS_H. From configure.ac AC_CHECK_HEADERS([sys/cdefs.h]) 2023-02-19 08:22:33 +00:00
8861a4a658 Update README.rst [skip ci] 2023-02-19 08:21:49 +00:00
b0a37a6915 Updated Ubuntu 20.04 doc to fix link to build and test .yml 2023-02-19 08:21:18 +00:00
92bbcab130 Removed Ubuntu 21.04 (replace it with Ubuntu 22.04) 2022-07-25 11:47:07 +00:00
2325f84d1b Upgrade catch.hpp to Catch2 v2.13.9 2022-07-24 18:30:51 +00:00
09ff24809f Remove -d from render_expired test 2022-07-24 18:30:51 +00:00
0c4e2cf8b0 Add gen_tile_test sections, add zoom-level for render_speedtest
Also adjust exit codes for render_*
2022-07-24 18:30:51 +00:00
1529220734 Flawfinder, use non-dot-prefixed (I.E. current directory) paths 2022-07-24 18:28:30 +00:00
ad97e89f5d Update README.rst
Fix minor typo - as implied by the rest of the text, the tiles on disk are .meta not .png.
Also nudged copyright date to 2022.
2022-07-24 18:26:13 +00:00
056b115d26 Fix ERROR 1: bad application_id when reading example GeoPackage file (#281) 2022-05-29 18:29:51 +00:00
296f888752 Resolve various compiler warnings and errors (#279)
* Resolved warnings in `src/daemon.c`

I.E.:
```
src/daemon.c:835:16: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   char *name = iniparser_getsecname(ini, section);
                ^~~~~~~~~~~~~~~~~~~~
src/daemon.c:860:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    char *ini_uri = iniparser_getstring(ini, buffer, (char *)"");
                    ^~~~~~~~~~~~~~~~~~~
```

* Resolved warning in `src/mod_tile.c`

I.E.:
```
./src/mod_tile.c:327:53: warning: format '%d' expects argument of type 'int', but argument 9 has type 'long unsigned int' [-Wformat=]
      ap_log_rerror(APLOG_MARK, APLOG_WARNING, 0, r, "request_tile: Failed to read response from rendering socket. Got %d bytes but expected %d. Errno %d (%s)",
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             ret, sizeof(struct protocol_v2), errno, strerror(errno));
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
                  |
                  long unsigned int
```

* Resolved `cppcheck`-detected error

I.E.:
```
src/store_rados.c:355:3: error: Memory leak: store [memleak]
  return NULL;
  ^
```

* Fix `Does not check for buffer overflows (CWE-120)` in `src/daemon.c`

* Fix `Does not check for buffer overflows (CWE-120)` in `src/cache_expire.c`

* Resolved `cppcheck`-detected error

I.E.:
```
src/parameterize_style.cpp:43:3: error: Memory leak: data [memleak]
  return;        //No parameterization given
  ^

* url is `char *`, unlike buffer, size is not known
2022-05-29 18:29:21 +00:00
42e4f0d283 Added PID file path configurability (#282)
* Added PID file path configurability
2022-05-26 20:36:54 +00:00
52308d7996 Updated GitHub Actions job definitions (#277)
* Fixing "Lint with `astyle`" job
2022-05-26 20:35:14 +00:00
fe17e56eba Update man pages to reflect recent changes 2022-05-26 20:33:55 +00:00
9d34dd8044 Updated Usage to reflect recent change allowing TCP for tools (#273)
* Updated `Usage` to reflect recent change allowing TCP for tools as well as "description" alignment
2022-05-06 16:10:01 +00:00
ad0439ecb1 Temporarily disabled CentOS checks on CI 2022-02-07 20:25:19 +00:00
f0453c37d3 Allow connections over TCP besides Unix sockets
Signed-off-by: Stephan Austermühle <au@hcsd.de>
2022-01-06 20:32:50 +00:00
50afe3e351 Fix compile errors on FreeBSD (#268)
* Fix compile errors on FreeBSD

Co-authored-by: Michael Schmiedgen <root@maps.takwa.de>
2022-01-06 20:24:44 +00:00
7e81d950d1 Switch from shapefile to geopackage for example map.
Co-authored-by: Frederik Ramm <frederik@remote.org>
2021-09-21 11:37:38 +00:00
43beadaf08 Improve provided example configuration. 2021-09-21 11:16:45 +00:00
1d837265b5 Move redundant steps to local actions & use a Linux distribution matrix
https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix
2021-08-26 19:53:37 +02:00
9d9bfc1c84 Change logging level for empty/absent parameterize_style to DEBUG
Shown once per thread:
```
** INFO: 04:05:50.327: Loading parameterization function for
```

Fixed two minor grammar issues: `to` => `too`
2021-08-18 19:47:57 +02:00
98224eadb2 Allow tests to run again 2021-08-18 19:04:33 +02:00
032d90d130 Reverted change of copyright owners on included source files 0.6.1 2021-08-17 14:43:40 +00:00
fdf94e683f Added flawfinder code check 0.6 2021-08-04 11:03:22 +00:00
c683c5569b Added compilation instructions for several distros 2021-08-03 19:16:48 +02:00
4ea8729e14 Added build & test on CentOS 7
* Requires building `Mapnik`
  * Which requires these `EPEL` repository packages
    * `boost169-devel` + dependencies
    * `gdal-devel` + dependencies
    * `proj-devel` + dependencies
* Caches `Mapnik` build directory
  * Takes about 20-30 minutes without cache
  * Takes about 5-10 minutes with cache
* Runs on `push` to `centos7` branch & `pull_request`
* Includes very basic build documentation
2021-08-03 07:43:47 +02:00