Artem Pavlenko
bec509d5b8
Merge branch 'master' into proj6
2021-01-12 15:09:10 +00:00
Artem Pavlenko
bd961c4da2
update copyright year [skip ci]
2021-01-05 14:39:07 +00:00
Artem Pavlenko
8e1ff0785a
Merge branch 'master' into proj6
2020-11-30 15:10:13 +00:00
Mathis Logemann
f432018bdb
added cache variable for lib/bin/archive output
2020-11-25 12:16:06 +01:00
Mathis Logemann
37dd7c17df
update catch dep
2020-11-25 10:45:20 +01:00
Mathis Logemann
68528ffb28
cmake improvements
2020-11-22 22:01:33 +01:00
Mathis Logemann
29cd904c5f
fix one forgotton native()
2020-11-21 19:16:47 +01:00
Mathis Logemann
f68f7e88de
fixed map_xml_test
2020-11-21 19:03:55 +01:00
Mathis Logemann
691d385687
comment not workable test out
2020-11-21 18:17:32 +01:00
Mathis Logemann
96a8327d06
add libraries to test
2020-11-21 17:45:44 +01:00
Mathis Logemann
0eb0408cc3
add options for grid/svg renderer
2020-11-21 17:03:30 +01:00
Mathis Logemann
f447cad781
add initial test support
2020-11-21 13:20:04 +01:00
Mathis Logemann
64054fade4
compiler independent warning ignore
...
Signed-off-by: Mathis Logemann <mathisloge@gmail.com>
2020-11-19 17:25:10 +01:00
Artem Pavlenko
12cdc1af69
Update test values (epsg:2193)
2020-10-22 16:13:57 +01:00
Artem Pavlenko
a9d9f7ed99
add unit test #4177
2020-10-09 10:03:00 +01:00
Artem Pavlenko
d6d69df498
Update catch.hpp to v2.13.1 + fix tests
2020-09-10 15:34:52 +01:00
Artem Pavlenko
d0b40f62dc
Relax bounding box extracting grammar (ref #4140 ) + unit test
2020-05-07 11:35:53 +01:00
Artem Pavlenko
9bfe888cef
Add missing unit test for color::operator= and color::operator== (ref #4137 )
2020-04-23 18:20:32 +01:00
Martin Ždila
657442947b
add support for spacing-offset
2020-03-23 23:07:49 +01:00
Christoph Paulik
5a73efbb07
Add Int32 support for gdal driver
2020-02-11 12:30:03 +01:00
Artem Pavlenko
d26fc722d5
Add SVG renderer unit test - both inline and css styled octocat result in identical image (ref PR #4123 )
2020-02-07 13:53:06 +00:00
Artem Pavlenko
00b888c1ef
Add CSS parser grammar + move into separate include/css and src/css dirs.
2020-02-04 10:38:34 +00:00
Artem Pavlenko
ba4ad23af8
Update visual tests data
2020-01-23 16:12:55 +00:00
Artem Pavlenko
53f8c49620
SVG path parser : add Quadratic and Cubic Bezier curves tests.
2020-01-22 14:01:53 +00:00
Artem Pavlenko
44982cddc5
Update "Arcs 3" test for #222835e73a21fec3965b21685993b86a63f626b8
2020-01-14 21:05:41 +00:00
Mickey Rose
d38d16ade9
better tests for logical expressions
...
Two of the original checks were not testing what they were supposed to
test, because the result of eval didn't depend on correct parsing:
eval("not true or not true")
correct parse: ((not true) or (not true)) == false
incorrect parse: (not (true or (not true))) == false
eval("not false and not false")
correct parse: ((not false) and (not false)) == true
incorrect parse: (not (false and (not false))) == true
2020-01-02 17:30:24 +01:00
Artem Pavlenko
9e82006314
make ScriptRun
class visible
2019-11-06 15:08:30 +00:00
Artem Pavlenko
f33e318ac5
more compact test string initialisation via @talaj ( #4096 )
2019-11-05 10:55:16 +00:00
Artem Pavlenko
b84c414f2e
Add unit test for 7003255c0e
( #4096 )
2019-11-05 09:53:41 +00:00
Artem Pavlenko
370f38a2c3
remove sanitize=bounds
2019-11-04 11:41:49 +00:00
Artem Pavlenko
f2732ed517
remove sanitize=bounds
2019-11-04 11:35:47 +00:00
Artem Pavlenko
e72803935a
add ICU include
2019-11-04 11:22:41 +00:00
Artem Pavlenko
05d488f98d
add script runs unit test
2019-11-04 10:47:35 +00:00
lightmare
a0ea7db1a7
Merge pull request #3984 from lightmare/pg-app-name
...
accept explicit parameter "application_name" in postgis and pgraster datasources
2019-08-12 12:52:34 +02:00
lightmare
8a44f7ffbb
Merge pull request #3942 from lightmare/postgis-float-tokens
...
postgis: always put decimal point in substituted tokens in SQL
2019-08-11 11:57:44 +02:00
Artem Pavlenko
05546b2053
add 'pattern' to unsupported elements + call handle_unsupported
on end_element to catch them all + update unit tests
2019-08-08 11:50:31 +01:00
Artem Pavlenko
7d1bfaeb4b
Merge pull request #3999 from mapnik/test-placement-type
...
Tests of text_placements_simple and text_placements_list
2019-07-02 11:56:39 +01:00
Nikita Kniazev
c191e196c0
Replace MAPNIK_INIT_PRIORITY workaround
...
Spirit rules are just placeholders. They are cheap to construct and by doing
this static initialization order fiasco problem is effectively avoided.
Also had to fix name clash between geojson and generic json parsers.
2019-07-02 01:04:31 +03:00
Jiri Drbalek
6f83cdf572
Update visual tests
2019-05-17 22:55:42 +02:00
Artem Pavlenko
f04ab0cbae
Update svg unit tests post 831e353c5d
2019-05-14 10:50:10 +01:00
Artem Pavlenko
b1185fc099
Merge pull request #4031 from mapycz/adaptive-smooth
...
[WIP] Adaptive smooth
2019-02-13 14:00:00 +00:00
Jiri Drbalek
2dde0eb257
Adaptive smooth
2019-02-09 15:24:12 +00:00
Jiri Drbalek
c2b1103cb6
Cairo: set version of SVG to 1.2
2019-02-08 12:32:01 +00:00
Artem Pavlenko
23492d6742
CSS color: add hue range tests for hsl(a) color strings ( #4020 )
2019-01-16 10:31:53 +00:00
Jiri Drbalek
91b868d7ad
Update visual tests
2018-11-21 12:21:54 +00:00
Artem Pavlenko
def1994856
update dependencies
2018-11-20 14:36:59 +00:00
Artem Pavlenko
65e98c1940
fix compiler warning (warning: field 'expected_query_bbox_' will be initialized after base 'mapnik::memory_datasource' [-Wreorder])
2018-11-20 14:16:44 +00:00
Jiri Drbalek
46de0f661b
New test of text_placements_list
2018-10-20 21:09:08 +00:00
Jiri Drbalek
90a1b65081
New test of text_placements_simple
2018-10-20 20:59:20 +00:00
Jiri Drbalek
493eaa4d18
Update visual tests
2018-09-20 08:14:43 +00:00
Jiri Drbalek
d42d2740f3
Update visual tests
2018-09-18 12:12:53 +00:00
Mickey Rose
86e70a726d
postgres: add connect param "application_name"
2018-09-07 11:07:33 +02:00
lightmare
6a7317d354
Merge pull request #3967 from mapycz/fix-warp-transparent-raster
...
Fix seams of mesh faces when warping transparent raster
2018-08-15 23:07:29 +02:00
Jiri Drbalek
b50498cb53
Update test data
2018-08-15 07:44:27 +00:00
lightmare
a6e0b6b857
Merge pull request #3958 from mapycz/fix-buffer-size-with-scale-factor
...
Fix buffer-size with scale-factor
2018-08-14 17:11:31 +02:00
Mickey Rose
6a3452da96
fix read beyond buffer in topojson test
2018-08-13 19:08:30 +02:00
Mickey Rose
ee28954786
topojson: add test with empty "objects" and "arcs"
2018-08-13 18:41:56 +02:00
Jiri Drbalek
8a0dca38a3
Fix buffer-size with scale-factor
2018-08-01 08:06:37 +00:00
Artem Pavlenko
af842a8bf9
Merge branch 'pi-is-wrong' of https://github.com/lightmare/mapnik into lightmare-pi-is-wrong
2018-07-30 10:40:51 +01:00
Jiri Drbalek
acbf80677a
update visual tests data
2018-07-27 10:23:34 +00:00
Mickey Rose
6e71bad70c
Revert "update test data"
...
This reverts commit 81183d6fe6
.
It removed recent tests, didn't update.
2018-07-27 10:58:31 +02:00
Mickey Rose
774a618d13
postgis: add test for pg_typeof substituted tokens
2018-07-19 22:51:01 +02:00
Mickey Rose
f1d07d6718
proj_transform test: also check that transform succeeded
2018-07-18 19:31:12 +02:00
Mickey Rose
1e6feecb91
proj_transform: add test for strided coordinate array
2018-07-16 14:18:49 +02:00
Mickey Rose
f84191204e
eradicate M_PI
2018-07-16 14:18:49 +02:00
Mickey Rose
2a98fe0155
proj_transform test: use reference values from cs2cs tool
2018-07-10 11:31:06 +02:00
Jiri Drbalek
9a30fda852
Backport Python test of bbox reprojection
...
Originaly in Python from https://github.com/mapnik/mapnik/pull/2657
2018-07-10 11:31:06 +02:00
Artem Pavlenko
735acb297a
add (uncomment) surrogate pairs test + small typo fix
2018-07-02 21:55:27 +02:00
Artem Pavlenko
df0ba4a777
add more single/double quotes tests
2018-07-02 16:42:35 +02:00
Artem Pavlenko
81183d6fe6
update test data
2018-07-02 15:11:47 +02:00
Artem Pavlenko
2977688a8a
test for single and double quoted escaped strings (regex) (ref 3433397c30 (commitcomment-29512684)
)
2018-07-02 15:10:28 +02:00
Artem Pavlenko
7db6b0c9f0
Merge pull request #3925 from lightmare/test-ds-attr-types
...
Also check types of values in datasource tests
2018-07-02 09:53:53 +02:00
Artem Pavlenko
51065985df
Merge pull request #3921 from lightmare/unicode-attr-name
...
add test for parsing expression with non-ascii characters in attribute name
2018-07-02 09:51:45 +02:00
Artem Pavlenko
9e3014494c
Merge pull request #3912 from mapycz/fix-overviews
...
GDAL: Fixes of overviews
2018-07-02 09:49:46 +02:00
Mickey Rose
2e82c17d92
datasource tests: typos
2018-06-30 15:26:17 +02:00
Mickey Rose
58592ed597
datasource tests: fix failing csv test
...
- it was indeed the test that was wrong; the coordinates in nypd.csv are
specified with a decimal point, thus should be `value_double`
2018-06-30 15:21:55 +02:00
Mickey Rose
04e1f82734
datasource tests: use macro REQUIRE_ATTRIBUTES instead of function
...
- failing checks report location inside the function, not where it's
called from; using macro reports proper location
2018-06-30 15:20:22 +02:00
Mickey Rose
d62e215ff9
datasource tests: also check value types in REQUIRE_ATTRIBUTES
2018-06-30 15:20:19 +02:00
Mickey Rose
5544c4c74f
expressions_test: add test for unicode attribute name
...
Refs #1153
That issue doesn't affect current master, maybe it was valid at the time
of posting. I just couldn't find a test that'd confirm unicode in
attribute names actually works, so here it is.
2018-06-27 11:58:56 +02:00
Mickey Rose
6befc23101
expressions_test: change properties_type to std::map
2018-06-27 11:56:36 +02:00
Dane Springmeyer
d60be13ed8
remove unused code
2018-06-26 15:57:21 -07:00
Dane Springmeyer
c458cf0c57
test duplicate style throw behavior exactly
2018-06-26 09:53:12 -07:00
Jiri Drbalek
712cce8213
Update test data
2018-06-11 14:40:58 +02:00
Artem Pavlenko
977c86af6c
update visual test data
2018-06-07 09:45:14 +01:00
Raul Marin
0becc1c5e9
Markers point placement: Add some basic tests
2018-05-11 15:39:55 +02:00
Jiri Drbalek
ab05de48df
postgis: Exclude password from ConnectionCreator::id()
...
- Password is not necessary for connection identification
- When password is not required by the database,
user can accidentally use multiple different passwords
without noticing.
This leads to allocating more connection pools
and increase of connection consumption.
2018-05-07 13:49:57 +00:00
Artem Pavlenko
d2d587cb1b
mapycz-save-map-denominator
2018-04-10 10:25:23 +02:00
Blake Thompson
a217b38fd5
Updated to use max_image_area as a datasource parameter for GDAL plugin
2018-03-30 15:40:30 -05:00
Blake Thompson
25e4bb3f6c
A fix for two distinct issues associated with gdal featuresets, the first is overviews were not properly being utilized based on the resolution of the final image requested. The second is that allocation of far too much memory could be possible in GDAL to attempt to do resampling internally in mapnik. This now has a hard cap so that we allocate less memory in these situations but are still able to resample internally in mapnik.
2018-03-30 15:10:29 -05:00
Artem Pavlenko
37b7f05180
Merge branch 'offset-converter-topology' of https://github.com/mapycz/mapnik into mapycz-offset-converter-topology
2018-02-26 16:06:19 +01:00
Artem Pavlenko
2a090aa799
update visual tests data
2018-02-20 12:42:40 +01:00
Artem Pavlenko
c5e91a5c1e
update color-blind filters tests post bac24cd844
2018-02-20 12:05:49 +01:00
Artem Pavlenko
bac24cd844
Fix apply_color_blind_filter to use correct color-space and avoid NAN which results in SIGILL when compiled with DEBUG_UNDEFINED=yes ( #3861 )
2018-02-20 11:19:53 +01:00
Artem Pavlenko
a2f596951e
update visual tests data
2018-02-15 10:04:43 +01:00
Jiri Drbalek
1adebaaf73
Update visual tests
2018-02-06 16:47:34 +00:00
Jiri Drbalek
f10e051e17
Add grid placement for text and shield symbolizer
2018-02-06 15:19:05 +00:00
Artem Pavlenko
d4826eea6f
Merge pull request #3844 from mapycz/interior-scale-invariant
...
Interior, polylabel: Scale precision by polygon size
2018-02-05 11:28:35 +01:00
Jiri Drbalek
953d1d1a01
Fix vertex_adapter test
2018-02-04 08:46:14 +00:00
Jiri Drbalek
c975c1b6b8
Update visual tests
2018-02-03 17:13:56 +00:00
Artem Pavlenko
828346add3
require BOOST_VERSION >= 1.62.0 ( #3835 )
2018-01-31 14:11:55 +01:00
Jiri Drbalek
223a240751
Update visual tests
2018-01-26 11:55:04 +00:00
Jiri Drbalek
fb5ca1bb8e
offset_converter: Don't filter out closing and moving segments
2018-01-26 11:55:04 +00:00
Jiri Drbalek
0c5d167028
polygon_vertex_adapter: Fix crash in case of empty interior ring
2018-01-23 15:18:44 +00:00
Artem Pavlenko
c6b9036002
Merge pull request #3827 from mapycz/gdal-test-upscaling
...
Add a test that GDAL plugin does not upsample
2018-01-18 15:54:15 +00:00
Jiri Drbalek
4e160acc88
Avoid copying
2018-01-17 13:39:21 +00:00
Jiri Drbalek
99038229f7
Polylabel: cover the case of empty polygon or exterior ring
2018-01-17 13:39:15 +00:00
Jiri Drbalek
a97eace434
Interior: cover the case of empty polygon or exterior ring
2018-01-17 12:58:42 +00:00
Jiri Drbalek
ec53f3d879
Fix crash in case of empty ring
2018-01-17 09:53:45 +00:00
Jiri Drbalek
43a9f70314
Add a test that GDAL plugin does not upsample
2018-01-10 15:02:44 +00:00
Jiri Drbalek
3af3286436
SVG: Add a test of clipPath
2018-01-09 16:11:19 +00:00
Artem Pavlenko
f6b11b86a8
update test/data
2018-01-09 15:40:41 +00:00
Jiri Drbalek
7febf6c24a
update visual tests
2017-12-17 08:11:58 +00:00
Jiri Drbalek
f52a0fa4f6
new interior algorithm
2017-12-13 21:48:13 +00:00
Jiri Drbalek
fe268b0e71
char_array_buffer should implement also seekpos()
2017-11-13 22:42:37 +00:00
Artem Pavlenko
1a338bb924
update test data
2017-11-06 10:31:37 +01:00
Artem Pavlenko
be5085d2e9
apply mapnik/c++ formatting
2017-11-06 09:47:01 +01:00
Artem Pavlenko
0a4214fe36
use latest deps
2017-10-31 11:12:14 +01:00
Jiri Drbalek
8c7d7e25cd
update visual tests
2017-10-06 09:52:30 +00:00
Artem Pavlenko
8dc1456766
update test-data
2017-09-29 10:26:04 +02:00
Artem Pavlenko
de9364d447
update deps + test data
2017-09-29 10:04:00 +02:00
talaj
377253bcc8
Check duplicate style names ( #3770 )
...
* Ported map I/O tests from Python.
These test loading, saving and round-tripping Map XML, and are
pretty much a direct port of the old Python `load_map_test.py` and
`save_map_test.py`.
* check duplicate style name
* update test data
2017-09-28 15:51:55 +02:00
Jiri Drbalek
43ea5dcb82
update visual tests data
2017-09-27 13:13:27 +00:00
Artem Pavlenko
eefe3de34b
update visual data post centroid PR
2017-09-26 09:47:26 +02:00
Artem Pavlenko
94ce4d530a
update tests
2017-09-25 16:52:59 +02:00
talaj
f3cf1ad388
Fix centroid and interior algorithms ( #3771 )
...
* fix interior algorithm - closing segment handling
* fix centroid algorithm - closing segment handling
* update visual tests
2017-09-25 15:45:02 +02:00
Artem Pavlenko
f210699884
add more tests
2017-09-22 13:20:23 +02:00
Artem Pavlenko
143d1e57cf
add 'closest_point' geometry algorithm
2017-09-21 15:40:30 +02:00
Artem Pavlenko
fa96232258
update visual data
2017-09-20 09:54:25 +02:00
talaj
13d678d9af
visual tests: allow to ignore particular renderer ( #3768 )
...
* visual tests: refactor parsing parameters from the style
* visual tests: allow to ignore particular renderer
* update visual tests
2017-09-14 14:21:30 +01:00
Artem Pavlenko
5a87d8fef9
update deps
2017-09-13 10:51:36 +01:00
talaj
d14203561d
color font support improvements ( #3758 )
...
👍
2017-09-13 10:14:46 +01:00
talaj
c7c10fed46
basic unit test for feature_style_processor ( #3766 )
2017-09-13 10:14:13 +01:00
talaj
c80cde6044
visual tests: report failed tests ( #3765 )
2017-09-13 10:13:51 +01:00
Artem Pavlenko
e97759d01b
geojson test - require throwing on an empty feature collection
...
(not sure this is correct but needed to preserve 3.0.x behaviour)
2017-09-11 17:58:26 +01:00
Dane Springmeyer
13ff9e1706
adapt to spelling fix in svg tests
2017-09-10 10:22:08 -07:00
Artem Pavlenko
0253653676
Geobuf.input ( #3715 )
...
* geobuf.input - initial implementation (WIP)
* geobuf.input - fix reading MultiPolygon's
* geobuf.input - don't store invalid bounding boxes in r-tree.
* Use `protozero` lib to read `geobuf` (Initial implementation, not complete!)
* geobuf.input - poring to `protozero`. (TODO: add support for `GeometryCollection`)
* add initial support for `GeometryCollection` + cleanup namespaces
* remove stderr + cleanup + update copyright
* fix GeometryCollection and MultiLineString decoding + add support for standalone Feature and Geometry
* don't use `reserve` as undelying data format doesn't allow for efficient `distance` implementation.
* add geobuf unit test + update test data
* update data
2017-08-17 10:52:07 +01:00
artemp
a682cea51e
svg-parser - unify error messages text + update unit test
2017-08-08 12:38:24 +01:00
artemp
6f73181e9b
Enforce consistent error handling policy - always throw on fatal errors (both strict and non-strict). In strict
mode throw on first parsing error. Remove return values from parse
,parse_from_string
and traverse_tree
methods. Update unit tests.
2017-08-02 10:32:13 +01:00
Blake Thompson
951f10791a
Fix for #3714 in master, addresses RGBA tiffs that have an alpha value and no data value - and are using the no data value over the alpha.
2017-07-06 12:30:05 -05:00
artemp
b632633373
convert args to mapnik::geometry::geometry<std::int64_t> (VS2017)
2017-07-06 16:03:28 +02:00
artemp
cd0c746a42
split grammar into two rules (VS2017)
2017-07-06 16:02:47 +02:00
artemp
55776f0b8c
add missing include directives (VS2017)
2017-07-06 16:02:17 +02:00
talaj
53249053e4
cairo renderer: clear map background with given color as agg renderer does ( #3718 )
2017-07-04 16:32:45 +02:00
talaj
d0ecd51b63
Set premultiplied flag to the color font glyph bitmap ( #3716 )
...
* color font bitmap is premultiplied
* update visual tests
2017-07-03 17:15:07 +02:00
artemp
12d077ea0c
disable bbox comparison (WIP)
2017-06-29 09:41:16 +02:00
artemp
ef6c2e71b8
svg-parser : handle parsing failures via error_handler
( throw in strict mode and log+continue when strict==false)
2017-06-29 09:41:16 +02:00
Blake Thompson
5bc80e909e
Restored the proper useage of filter factor for image rescaling, where it is used in a variety of different algorithms for resampling.
2017-06-13 09:17:54 -05:00
Blake Thompson
4b69974175
Merge branch 'master' into webp_more_tests
2017-06-05 09:50:53 -05:00
Jiri Drbalek
0ecc4c6762
update visual tests
2017-06-02 15:43:11 +00:00
Blake Thompson
f285195f93
Updated the tests for webp in relation to #3661
2017-06-02 09:32:42 -05:00