artemp
3184034414
refactor geometry core and algorithms templates + add missing typedefs + prepare for geometry update
2016-04-29 14:24:57 +02:00
artemp
de927a1571
Merge branch 'master' into geometry-refactor
2016-04-29 10:47:43 +02:00
artemp
49b23622db
Don't compile visitor ref #3380 (thanks @lightmare)
2016-04-25 14:58:46 +02:00
artemp
be06a2d301
require boost >= 1.58 for spatially_equal(geom_0, geom_1)
test ref #3380
2016-04-25 11:20:23 +02:00
artemp
633a2c1e07
Merge branch 'master' into geometry-refactor
2016-04-18 16:15:04 +02:00
artemp
66160e9754
mapnik::util::is_clockwise - translate coordinates relative to the origin (0,0) to avoid numeric precision issues while using double precision.
...
(ref #3402 )
2016-04-18 16:08:30 +02:00
artemp
2e0d83aa91
geometry::multi_point - derive from std::vector<point<T>> instead of line_string<T>
2016-04-12 10:12:16 +02:00
Dane Springmeyer
abe943c983
revert geometry changes for now - will develop them in branch to reduce downstream breakage
2016-04-11 14:00:27 -07:00
artemp
caa03d78bd
move geometry_adapters.hpp to geometry/boost_geometry_adapters.hpp
2016-04-11 15:14:52 +02:00
artemp
5f00171d3d
fix warning: using namespace directive in global context in header [-Wheader-hygiene]
warnings
2016-04-08 10:41:50 +02:00
mapsam
c1b1e3d8f9
concatenating strings & values currently fails
2016-03-31 15:36:47 -07:00
artemp
8f9134c72d
file_io - rename open
to is_open
to be consistent with STL i/o via @lightmare ( 0d032c2618 (commitcomment-16753722)
)
2016-03-18 10:02:19 +01:00
artemp
7ad568b54a
topojson test - add feature_generator
2016-03-17 15:10:29 +01:00
artemp
f65fae66ba
topojson test - check bounding box is valid
2016-03-17 14:22:29 +01:00
artemp
ed37ff4b89
basic TopoJSON parsing tests (work-in-progress)
2016-03-17 12:52:35 +01:00
artemp
61bcecbe95
WKB/TWKB - add reading tests for all geometry types
2016-03-16 15:06:27 +01:00
artemp
98a37d9c7a
add well-known geometries in WKT, WKB, TKWB formats
2016-03-16 15:05:35 +01:00
artemp
d0e2a5b7d9
parse_hex - helper method
2016-03-16 15:04:42 +01:00
artemp
d5eb6c8ddf
remove unused headers and codex
2016-03-16 09:52:43 +01:00
artemp
96b96c745d
Revert "csv_utils - check and skip processing lines consisting only of 0xa (windows) ( fixes #3359 )"
...
This reverts commit 9c09f15de9
.
2016-03-15 13:01:54 +01:00
artemp
9c09f15de9
csv_utils - check and skip processing lines consisting only of 0xa (windows) ( fixes #3359 )
2016-03-15 12:26:00 +01:00
Mickey Rose
344e62e7db
expressions_test: add empty string round-trip check
2016-03-15 00:26:21 +01:00
Dane Springmeyer
2204a983c6
[test][windows] use utf8 encoding + stop using non-portable path comparison
2016-03-12 08:59:54 -08:00
Dane Springmeyer
632dd7e76d
[test][windows] ensure reader is destroyed before trying to remove file - refs #3359
2016-03-12 08:58:53 -08:00
Dane Springmeyer
c18e086026
[csv test][windows] fix string comparison issues on windows
2016-03-11 20:07:54 -08:00
Dane Springmeyer
df62c07a68
[io test] [windows] create directories recursively
2016-03-11 20:07:31 -08:00
Dane Springmeyer
78442547f8
fix directory assertion logic
2016-03-11 18:24:22 -08:00
Dane Springmeyer
b14d525968
write images to custom tmp directory and create it first
2016-03-11 18:08:35 -08:00
Dane Springmeyer
fde36984de
minor unit test cleanups to prepare to test amalgamation
2016-03-03 10:53:58 -08:00
artemp
176d3e49c9
update test (ref f44b5ccfd9
#3237 #3238 )
2016-02-25 15:31:18 +01:00
artemp
c044b6d073
add relevant empty string/null equality ref #1859 #3255
2016-02-25 11:21:07 +01:00
artemp
62de76a66e
test bogus *.index files are handled correctly (ref #3300 ) + indirectly tests #3306 via requiring mapped_memory_cache::instance().clear()
2016-02-19 11:25:27 +01:00
artemp
c4817f7ae1
clear mapped_memory_cache to ensure new '*.index` are used (MAPNIK_MEMORY_MAPPED_FILE) (ref #3306 )
2016-02-19 11:02:12 +01:00
artemp
eb1a23d6e4
'invalid index' - testing invalid
*.index fallback (ref #3300 )
2016-02-18 17:36:18 +01:00
Dane Springmeyer
4beda3bc46
fix #3290
2016-02-16 12:30:40 -08:00
artemp
ca0c0e5888
csv_util - combine auto-decting separator/quote/newline into one method std::tuple<char, bool, char, char> autodect_csv_flavour(T & stream, std::size_t file_length)
2016-02-15 13:55:06 +01:00
Mickey Rose
f19b8e8eff
test/expressions: add checks for backslash-escapes in strings
2016-02-15 02:23:19 +01:00
artemp
edc2e75474
Merge branch 'trim-filter-grammar' of https://github.com/lightmare/mapnik into lightmare-trim-filter-grammar
2016-02-11 15:43:18 +01:00
Dane Springmeyer
8ecb42894f
restore << operator for mapnik::enumeration + add unit test
2016-02-09 10:08:29 -08:00
Mickey Rose
ae39d48b86
test/expressions: add checks for logical operator precedence
2016-02-06 14:26:57 +01:00
Mickey Rose
401dfacfc5
test/image_filter: prevent SIGSEGV when parsing fails
2016-02-06 01:56:05 +01:00
Mickey Rose
5764d619f3
expressions test: move expression strings into Catch calls, continue on failure
2016-02-05 17:22:01 +01:00
Mickey Rose
53bb55eade
rename expresssions_test.cpp, didn't pass spell check
2016-02-05 17:22:01 +01:00
artemp
cb708d7f5a
transform_grammar: correct and simplify rules per bcc7495a87 (commitcomment-15915607)
...
image_filter: relax `agg-stack-blur` rule to allow `agg-stack-blur,agg-stack-blur(),agg-stack-blur(1),agg-stack-blur(1,1)` syntax + add image filter parsing tests
2016-02-05 16:50:49 +01:00
Mickey Rose
7594301d98
test/shapeindex: include loop variables in failure message
...
[skip ci]
2016-02-04 18:54:21 +01:00
artemp
13af423046
unit test - use 'parse_image_filters' and avoid instantiating expensive redundant grammar
2016-02-02 11:30:00 +01:00
Dane Springmeyer
a447c78d2e
ensure valid objects in shapeindex test
2016-01-29 16:30:03 -08:00
Dane Springmeyer
c786ff9edf
postgis unit test: copy params to ensure that each test is independent and order does not matter
2016-01-27 12:55:26 -08:00
artemp
d027ed67c7
more const
strictness, update to work with latest mapbox::variant/visitor-no-copy
branch
2016-01-27 14:50:17 +01:00
artemp
c7a964abf6
disable "point unitialized" test for boost >= 1.50 (pending reviewing https://github.com/mapnik/mapnik/issues/3218 )
2016-01-27 14:48:57 +01:00
Dane Springmeyer
c037fcba36
fix shapeindex tests - closes #3252
2016-01-25 16:57:32 -08:00
Artem Pavlenko
f17b11a1e5
Merge pull request #3251 from lightmare/svg-parser-test
...
Fix #3249 and make parse_svg_value more strict
2016-01-25 09:58:14 +01:00
Mickey Rose
05b66fc355
refactor svg_parser_test
...
- moved some boilerplate to helper struct test_parser
- added REQUIRE(!parse...) to parsing error tests
- changed parsing error tests to compare full error lists instead of
just count and then individual messages (if count was different, you
were left in the dark with no messages at all)
- changed some double-quotes in errors to single-quotes
(corresponding change to parser follows)
2016-01-23 20:21:05 +01:00
Tom Hughes
72297c9431
Adapt geometry tests got changes in boost 1.60
...
The issues with points at NaN and infinity bring considered as
valid reported in https://svn.boost.org/trac/boost/ticket/11711 has
been fixed in boost 1.60 so the tests need to reflect that.
Also per https://svn.boost.org/trac/boost/ticket/11710 empty
polygons are now considered invalid, and hence not simple.
2016-01-23 14:43:02 +00:00
Blake Thompson
5e30aee4e7
Added missing required header from unit test
2016-01-22 11:02:12 -06:00
artemp
a3ed9ad07e
value test - improve coverage
2016-01-21 18:36:41 +01:00
artemp
a707d5cd65
test svg - refactor common code into separate *.hpp
2016-01-21 18:14:17 +01:00
artemp
74776631c5
add value tests
2016-01-21 12:48:36 +01:00
artemp
be7a70746c
image_io_test - increase coverage
2016-01-20 13:43:01 +01:00
artemp
c36ae3964a
image_io_test : add basic save options tests
2016-01-20 13:39:32 +01:00
artemp
2db9818ab9
image_io_test : add 'save_to_xxx' tests
2016-01-20 12:24:08 +01:00
artemp
5471f519cd
box2d - add missing tests
2016-01-19 12:15:50 +00:00
artemp
19c8b3e581
mapnik::color + increase unit test coverage (operator<<, to_string(), premultiply/demultiply)
2016-01-19 11:39:12 +00:00
mapsam
7a98745883
adding new passing test that catches failure of feature collection properties
2016-01-15 08:37:30 -08:00
Dane Springmeyer
5a6de7627b
improve formatting of INFO output [skip ci]
2016-01-14 16:10:10 -08:00
Dane Springmeyer
bba2826813
make available test functions as macros to allow catch to report correct line numbers
2016-01-14 16:06:20 -08:00
artemp
cc635df7bc
svg_parser - use parse_svg_value
2016-01-14 11:03:55 +00:00
artemp
8ab10d0231
update test
2016-01-14 10:56:05 +00:00
artemp
37d586d701
Unit tests - add SVG path parsing tests
2016-01-12 15:08:02 +00:00
Dane Springmeyer
488af4055d
Reduce merge conflicts with master
2016-01-11 16:23:04 -08:00
Dane Springmeyer
1687f6ff1b
add custom command line options to unit tests - refs philsquared/Catch#381
2016-01-05 17:13:36 -08:00
Dane Springmeyer
96dff395a4
fix usage of base in csv unit tests
2016-01-05 15:18:02 -08:00
artemp
869bff43f0
remove debug printing
2016-01-04 15:15:37 +00:00
artemp
b513d6a07b
don't export DYLD_LIBRARY_PATH multiple times
2016-01-04 14:24:25 +00:00
artemp
102671e498
add test with --index-parts
option
2016-01-04 14:22:09 +00:00
Dane Springmeyer
fc6556170d
let's not depend on CREATE EXTENSION working in C++ code
2015-12-14 15:27:05 -08:00
Dane Springmeyer
b42f072ad3
wip: start chipping away at getting tests running - refs #3180
2015-12-14 15:00:10 -08:00
Dane Springmeyer
dc109a7ae2
Merge branch 'master' of github.com:mapnik/mapnik into postgis-tests-squashed
2015-12-14 13:45:29 -08:00
artemp
5e2f3ce61d
geojson/geometry - update unit test
2015-12-14 11:46:39 +00:00
artemp
e65cb96743
sync expressions tests with spirit-x3 branch
2015-12-08 16:39:32 +00:00
artemp
327ba670ff
expressions unit test - add relational and regex tests
2015-12-08 16:25:59 +00:00
artemp
319651c33a
expressions unit test - add logical expr
2015-12-08 14:25:02 +00:00
artemp
10cd9cd0fd
unit test - expression parsing/evalution test
2015-12-08 14:25:02 +00:00
artemp
e2cf79260f
unit tests - add 'ensure original ordering in geojson.input' test ref #3182
2015-11-25 12:46:21 +00:00
Jiri Drbalek
100e3c4995
centroid: enable algorithm on multi-geometries with empty sub-geometries
2015-11-24 15:41:34 +00:00
artemp
a2b1475ef7
port shapeindex_test.py
to c++ ( #3184 )
2015-11-24 10:50:09 +00:00
bergwerkgis
b4a7b594dd
1st iteration of PostGIS tests
2015-11-20 15:44:43 +01:00
Artem Pavlenko
4e922f6a64
Merge pull request #3164 from mapycz/postgis-empty-geoms
...
check input data of centroid algorithm
2015-11-11 10:21:39 +00:00
Jiri Drbalek
6066946ef2
add unit tests for is_empty and has_empty
2015-11-10 13:49:22 +00:00
Jiri Drbalek
071eeeb660
centroid algorithm: check for empty geometries
2015-11-10 13:49:12 +00:00
artemp
617400f1a1
unit test - add malformed FeatureCollection test where we expect exception to be thrown in featureset::next() method even when mapnik-index
creates *.index file (expected due to optimised parsing)
2015-11-10 11:37:48 +00:00
Dane Springmeyer
58f30f3d42
more CSV test coverage - refs #3098
2015-11-09 10:47:07 -08:00
Dane Springmeyer
53174718d8
use mapnik/warning_ignore.hpp in a few more places
2015-11-09 09:51:35 -08:00
Dane Springmeyer
de1d1b902a
Merge pull request #3163 from mapycz/fix-offsetting-test
...
unit test: fix offsetting test
2015-11-07 12:42:08 -08:00
artemp
b85055ee38
unit test - add malformed "Feature" tests
2015-11-06 11:50:25 +00:00
Jiri Drbalek
c7de93ae76
unit test: fix offsetting test
2015-11-05 13:38:40 +00:00
artemp
a2975c0d23
unit test - check values stored as expected types in mapnik::value
2015-11-03 15:17:43 +00:00
bergwerkgis
4325fcb26d
Windows tests: fix missing "M_PI"
2015-11-03 13:22:51 +00:00
artemp
2893ee4551
mapnik::value - add missing specialisations for mapnik::value_bool in comparison operators + update unit tests
2015-11-03 10:11:29 +00:00
artemp
96c2fc9076
image - update unit test re: cb31692f37
2015-11-02 10:27:11 +00:00