Artem Pavlenko
a65d65a5ab
Update .clang-format to BraceWrapping: BeforeCatch : true
...
run `pre-commit`
2022-11-10 15:57:38 +00:00
Artem Pavlenko
1d75721a46
Fix compiler warning -
...
```
include/mapnik/markers_placements/vertex_last.hpp:49:18: warning: variable 'cmd1' set but not used [-Wunused-but-set-variable]
unsigned cmd1 = SEG_END;
^
1 warning generated.
```
2022-11-04 14:39:54 +00:00
Artem Pavlenko
7e5655eef4
Use snprintf
instead of sprintf
(ref #4361 )
2022-11-04 13:46:10 +00:00
Artem Pavlenko
bd018ef5ab
git-clang-format
2022-11-03 11:29:50 +00:00
Konstantin Käfer
98e5e64d80
SVG: Fix reflection points for smooth curves after arcs
...
Internally, Agg/Mapnik converts arcs to curves. This means that the detection logic in the “smooth curve” command, which looks at the previous points for calculating the reflection point, mistakenly assumes that the previous commands were curve commands, even though they were in reality arc commands. To fix this, we add an explicit lineto command after every arc.
2022-10-18 12:17:05 +02:00
Artem Pavlenko
9cf40a6144
Fix radial-distance
simplification algorithm to always oupput last vertex (ref #4347 )
2022-09-23 09:41:11 +01:00
Mathis Logemann
eb16e7a647
fix all files
...
format files
2022-08-14 22:26:31 +02:00
Artem Pavlenko
9627432723
Fix -Wdeprecated-enum-enum-conversion
warnings (AGG)
2022-08-04 11:25:35 +01:00
Artem Pavlenko
a9c98dff5d
Fix deprecation warning (libtiff)
...
/usr/include/x86_64-linux-gnu/tiff.h:81:45: note: 'uint16' has been explicitly marked deprecated here
typedef TIFF_MSC_DEPRECATED uint16_t uint16 TIFF_GCC_DEPRECATED;
2022-08-04 11:01:56 +01:00
Mathis Logemann
d148121dad
fix formatting of warning.hpp
2022-02-02 17:31:43 +01:00
Mathis Logemann
779787f980
Merge branch 'master' of https://github.com/mapnik/mapnik into feature/clang-format
2022-01-28 10:31:55 +01:00
Artem Pavlenko
7df7e16c56
Merge pull request #4284 from mathisloge/fix/windows-utf8
...
CMake stuff, missing includes and enables tiff test on windows
2022-01-28 09:20:52 +00:00
Artem Pavlenko
dafdbb01ea
Merge pull request #4276 from mathisloge/remove_cxx11_support
...
remove cxx11_support.hpp
2022-01-28 09:18:53 +00:00
Mathis Logemann
ba27149232
add missing includes
2022-01-27 18:32:21 +01:00
Mathis Logemann
6dcf754077
format dir test
...
format dir test
fix
2022-01-27 00:12:12 +01:00
Mathis Logemann
e7c3d04309
format dir include and src
...
format all files
Revert "format all files"
This reverts commit 95d5812e49e7f916b68e786596f5a8eb5bcac414.
Revert "format some files"
This reverts commit ed3c8762d4d828b2b28e7b18809fc33f4f8ccaf5.
format all files
fix formatting in dir include
fix formatting of debug macro
2022-01-27 00:12:08 +01:00
Artem Pavlenko
1d6350b1e5
Merge pull request #4281 from mathisloge/fix/unique_shared_ptr
...
use shared::ptr<T>::use_count instead of unique()
2022-01-25 12:09:52 +00:00
Mathis Logemann
9ac35a0a9c
use use_count instead of unique()
...
This should be safe to use, since there aren't any weak_ptr's using the shared_ptr. Furthermore any async operations should be finished or guarded for multithreaded execution.
2022-01-25 10:21:27 +01:00
Artem Pavlenko
9e3bafcd4c
Merge pull request #4279 from mathisloge/fix/issue-4268
...
fix #4268 by adding mapped_memory_file
2022-01-25 08:54:50 +00:00
Mathis Logemann
fe887a2c83
fix #4268 by adding mapped_memory_file
2022-01-24 10:45:32 +01:00
Mathis Logemann
26052486ee
remove cxx11_support.hpp
2022-01-20 23:07:17 +01:00
Mathis Logemann
4f95463c75
remove make_unique
2022-01-19 12:42:52 +01:00
Mathis Logemann
e626ba2688
replace _WINDOWS with _WIN32
2021-10-21 18:22:53 +02:00
Joshua Hintze
cab3ba345c
-Removed unneeded macro escapes
2021-10-15 19:33:50 -06:00
Joshua Hintze
15798e6ebb
-Fixed issue with VS2017 compiling
2021-10-15 19:31:45 -06:00
Mathis Logemann
bf6081b207
[unit-test] add std includes for external catch2
2021-10-09 13:46:24 +02:00
Mathis Logemann
8500b3cd69
remove not needed include of <warning.hpp>
2021-07-24 00:58:28 +02:00
Mathis Logemann
a7ec89a8a1
Merge branch 'master' of https://github.com/mapnik/mapnik into cmake-support
2021-05-29 22:43:59 +02:00
Artem Pavlenko
0efdcafe56
make from_u8string
inline
2021-05-17 16:11:53 +01:00
Artem Pavlenko
6fa2666747
Add convertion functions from_u8string
to support c++20 + update tests
2021-05-17 16:11:44 +01:00
Mathis Logemann
4879efce58
Merge branch 'master' of https://github.com/mapnik/mapnik into cmake-support
2021-04-22 19:41:35 +02:00
Artem Pavlenko
f293371a9d
SVG rendering improvements:
...
* process `font-size` attributes and use them to scale `em` units
* fix default `color-stop` value
* store `viewBox` and use it to calculate `%` values correctly
* add more absolute/relative values
* default `DPI`:96
* default `font-size`: 10
* process style attributes on `<svg>` element
* use viewBox `width`, `height` and `normalized_diagonal` for relevant length values
* apply scale factor to gradient transforms
2021-04-13 09:19:33 +01:00
Artem Pavlenko
9c2132f895
Fix gradient transform calc (apply scale factor)
2021-04-13 09:17:48 +01:00
Artem Pavlenko
ff8c411749
Use DPI=96 + add absolute and relative sizes + add missing value units
2021-04-12 14:16:39 +01:00
Mathis Logemann
b6d8f54779
Merge branch 'master' of https://github.com/mapnik/mapnik into cmake-support
2021-04-06 18:38:51 +02:00
Artem Pavlenko
6bab4e56fd
Move MAPNIK_DECL
to the front (ref https://github.com/mapnik/mapnik/pull/4220#issuecomment-814259514 )
2021-04-06 17:36:46 +01:00
Mathis Logemann
9049a7e58d
Merge branch 'master' of https://github.com/mapnik/mapnik into cmake-support
2021-04-06 17:27:28 +02:00
Artem Pavlenko
b974a4a683
Simplify proj_transform_cache implementation (ref https://github.com/mapnik/mapnik/pull/4191#issuecomment-813377082 )
2021-04-06 10:30:12 +01:00
Mathis Logemann
ee90425de1
fixes proj_transform_cache incomplete type for gcc
2021-04-01 17:57:20 +02:00
Mathis Logemann
b1e1ea66f5
try fix linux take II
2021-04-01 16:03:58 +02:00
Mathis Logemann
8cd78b6945
Merge branch 'master' of https://github.com/mapnik/mapnik into cmake-support
2021-03-26 20:04:30 +01:00
Artem Pavlenko
3489bdbe36
rename PROJ_VERSION to MAPNIK_PROJ_VERSION to avoid clashes with libproj
2021-03-25 16:38:21 +00:00
Mathis Logemann
f8b159f8ff
Merge branch 'proj6' of https://github.com/mapnik/mapnik into cmake-support
2021-03-25 13:26:30 +01:00
Artem Pavlenko
503b9c5bbf
Move proj_transform_cache declarations and implementaion into separate translation unit (ref VC++ C2492)
2021-03-25 12:16:15 +00:00
Mathis Logemann
4eed15f87a
Merge branch 'proj6' of https://github.com/mapnik/mapnik into cmake-support
2021-03-24 23:30:50 +01:00
Artem Pavlenko
6af16764aa
proj - add version check based on major*10000+minor*100+patch format
2021-03-19 13:22:16 +00:00
Artem Pavlenko
6b9b42f314
Declare proj_cache_
thread_local static
to allow mapnik::Map to be thread-safe under certain conditions + refactor
...
(benchmark/src/test_rendering_shared_map.cpp)
2021-03-18 16:05:58 +00:00
Artem Pavlenko
6099804559
Use POSIX definition of pi
constant (M_PI) + define tau
in terms of pi
+ better namings + remove deprecated proj4 style definitions
2021-03-15 18:06:26 +00:00
Mathis Logemann
79d369db1f
Merge branch 'master' of https://github.com/mapnik/mapnik into cmake-support
2021-03-15 08:52:15 +01:00
Artem Pavlenko
7cbbd7305b
Map::mapnik - restore non-const access to layers + create proj_transform and cache in get_proj_transform
+ declare proj_cache_
mutable
2021-03-09 10:48:32 +00:00