Commit graph

396 commits

Author SHA1 Message Date
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
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
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
talaj
c7c10fed46 basic unit test for feature_style_processor (#3766) 2017-09-13 10:14:13 +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
artemp
b632633373 convert args to mapnik::geometry::geometry<std::int64_t> (VS2017) 2017-07-06 16:03:28 +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
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
artemp
82a7d07b7f return error code when no feature can be read from shapefile + update unit test. 2017-06-01 15:44:25 +02:00
Jiri Drbalek
7590cdabb0 fix typo in file name 2017-05-24 13:59:47 +00:00
Jiri Drbalek
c7561c1dc9 unit test - vertex-last marker placement 2017-05-24 13:59:47 +00:00
Jiri Drbalek
8d980d434e unit tests - closing polygon on reprojection 2017-05-24 12:10:11 +00:00
artemp
3a475517c0 TIFF I/O - use memory mapping in tiff_reader.cpp when MAPNIK_MEMORY_MAPPED_FILE is defined. 2017-05-22 16:29:22 +02:00
artemp
34a622f48e TIFF I/O - use memory mapping for file based I/O. 2017-05-22 13:07:42 +02:00
artemp
0968e13159 fix compile oops #3669 #3670 2017-05-17 17:41:44 +02:00
artemp
310eb71bdf TIFF I/O tests - refactor to reduce code duplication + remove std::cerr 2017-05-17 15:07:51 +02:00
artemp
6ac4ce66b3 TIFF I/O unit tests - check tiff_reader is able to read various permutations of TIFF format (rgb8|rgba8|gray8 + interleave:band|pixel + tiled|stripped)
(ref #3669 #3670)
2017-05-17 15:07:23 +02:00
artemp
6e025956ae add simple WKT round-trip test (required updated data) 2017-05-05 16:32:17 +02:00
artemp
2847c3bee9 format WKT to be able to test WKT<->WKT round-trip. 2017-05-05 16:28:05 +02:00
artemp
333ef9fde1 update copyright year 2017-05-05 13:02:01 +02:00
artemp
433d95046b re-enable strategy tests 2017-03-29 15:41:39 +01:00
artemp
3e803b52bb remove has_empty + fix is_empty implementaion to work with geometry.hpp 2017-03-29 11:39:04 +01:00
artemp
064b99168b geometry.hpp 2017-03-27 16:14:51 +01:00
artemp
fd36ac5279 Merge branch 'master' into geometry-refactor 2016-11-10 18:01:11 +01:00
artemp
a0a5085917 add GeoJSON num_features_to_query unit test (ref #3515) 2016-09-23 11:56:43 +02:00
Mickey Rose
e25bc271ec add unit test for image::swap 2016-09-07 19:23:36 +02:00
artemp
8e0e344b72 Merge branch 'master' into geometry-refactor 2016-09-05 09:41:52 +01:00
Dane Springmeyer
fa44f0e247 Add memory_datasource test + fix returning of invalid_featureset for emptyset 2016-09-02 15:09:45 -07:00
artemp
38bff90a99 Merge branch 'master' into geometry-refactor 2016-09-01 16:06:20 +01:00
artemp
af099a57ef topojson grammar - change interface + instantiate with Iterator = char const* to reduce binary size 2016-08-31 17:42:18 +01:00
Dane Springmeyer
f81583554a Merge branch 'master' of github.com:mapnik/mapnik into geometry-refactor 2016-08-22 16:19:17 -07:00
Dane Springmeyer
0ae2f1311c update test data if UPDATE env set 2016-08-22 10:50:08 -07:00
artemp
1a29b35717 GeoJSON unit tests- ensure descriptors are ordered by name (ref #3494) 2016-08-16 15:46:10 +01:00
artemp
b9279feee2 fix is_valid logic (ref #3494) 2016-08-15 12:49:43 +01:00
artemp
008a6eb4cf test geojson - add empty featurecollection test 2016-08-15 10:44:54 +01:00
artemp
5c11fe49f9 geoson+topojson tests - correct expected test data (ref #3491) 2016-08-12 11:05:50 +01:00
bergwerkgis
74d7726b2d remove unneeded 'u8' 2016-08-12 05:27:55 +00:00
artemp
2afae2a29b Expressions - more tests (ref #3483) 2016-08-09 16:25:59 +01:00
artemp
aa77eb4550 Expressions - add more regex tests to cover #3483 2016-08-09 16:13:12 +01:00
Artem Pavlenko
68db7ee224 Merge pull request #3475 from mapycz/logarithm
Add support for natural logarithm in expressions (via @talaj)
2016-08-01 15:07:01 +02:00
Jiri Drbalek
c1ab5c8e6c add support for natural logarithm function in expressions 2016-08-01 12:58:21 +00:00
artemp
b55f5dc895 image - add tiny image quantising tests (ref #3466) 2016-08-01 12:21:32 +02:00
artemp
d810ce46f2 re-enable geometry_strategy_test 2016-07-06 17:45:13 +01:00
artemp
68f53cfcd0 uncomment is_empty/has_empty tests 2016-07-05 10:24:54 +01:00
artemp
75b97eb64c temp disable failing tests 2016-07-04 10:32:31 +01:00
artemp
c27653066d bring back failing geometry tests 2016-06-29 18:40:47 +01:00
Dane Springmeyer
39f497ded6 re-enable centroid test which appears to be passing 2016-06-29 09:19:28 -07:00
artemp
e44f10460d disable "multi-polygon: one component empty" test 2016-06-29 15:02:19 +01:00
artemp
efabcc8081 make all mapnik::geometries aliases to mapbox::geometry and attempt to adapt new polygon model (one std::vector)
NOTE: some boost.geometry algorithms are broken as a result
2016-06-29 12:41:57 +01:00
artemp
66da9cdb18 using linear_ring = mapbox::geometry::linear_ring<T>; 2016-06-27 10:56:38 +01:00
artemp
3b1c7308cc make mapnik::geometry::line_string<T> an alias to mapbox::geometry::line_string<T> 2016-06-27 10:23:13 +01:00
artemp
9dd00b28dc Merge remote-tracking branch 'origin/master' into geometry-refactor 2016-06-27 08:51:55 +01:00
artemp
2e8c0d36c2 implement custom char_array_bufrer and remove boost::iostreams dependency 2016-06-22 17:21:25 +01:00
artemp
67d2a0e141 Merge branch 'master' into geometry-refactor 2016-06-20 15:01:29 +01:00
artemp
37d5a32875 make return type bool 2016-06-08 12:24:21 +02:00
artemp
9e3ccf6629 Issue a warning but don't fail if PostgreSQL is not running or it's not accessible (ref #3448) 2016-06-08 12:21:27 +02:00
artemp
37a8aed62d transcode input strings to UTF-8 (portability) 2016-05-24 12:16:48 +02:00
artemp
acb2d56f49 prefix string literals with u8"" to force UTF8 encoding (windows) 2016-05-24 10:54:34 +02:00
artemp
de13582004 remove stderr 2016-05-17 13:45:05 +02:00
artemp
8f74de8525 remove stderr 2016-05-17 13:05:37 +02:00
artemp
25217549f1 fix topojson parsing (work-in-progress) 2016-05-17 12:53:07 +02:00
artemp
3ec25e36fe test geojson.cpp - add empty properties (ref #3426) 2016-05-13 12:48:56 +02:00
artemp
d19ff576dc geojson test - fix the order in 'object' to match input (escaped.json) 2016-05-10 16:03:04 +02:00
artemp
d97583b53e geojson.cpp - fix and update test 2016-05-06 16:44:18 +02:00
mapsam
9d9c8db233 add geojson unit test for property types/values 2016-05-05 09:17:08 -07:00
artemp
52df451ee3 geometry_envelope_test - fix linking/duplicate symbols (ref #3415) 2016-05-04 10:20:10 +02:00
artemp
c0dfc92022 geometry_envelope - add tests for double/float/int coord_type (ref #3415) 2016-05-03 18:26:46 +02:00
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