Artem Pavlenko
a65d65a5ab
Update .clang-format to BraceWrapping: BeforeCatch : true
...
run `pre-commit`
2022-11-10 15:57:38 +00: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
Mathis Logemann
4f95463c75
remove make_unique
2022-01-19 12:42:52 +01:00
Artem Pavlenko
bd961c4da2
update copyright year [skip ci]
2021-01-05 14:39:07 +00: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
artemp
333ef9fde1
update copyright year
2017-05-05 13:02:01 +02:00
artemp
f13848e210
move box2.hpp
and related files into geometry
dir
2017-01-26 09:51:37 +01:00
artemp
a108068cf6
fix remaning std::fread
usage - check return value
2017-01-13 14:57:15 +01:00
artemp
5745bedbd9
update copyright year to 2016
2016-12-20 17:57:22 +01:00
artemp
18f721fd17
TopoJSON - implement parsing using spirit::x3
2016-12-19 16:18:19 +01:00
artemp
b5c9966e4b
refactor value related objects into include/value
dir
2016-10-11 18:01:30 +02:00
artemp
8ce7a1c43d
refactor souce code files with the following rule: the physical filesytem path matches namespace structure
...
e.g `mapnik::geometry::centroid()` -> `$(MAPNIK_SOURCE)/include/mapnik/geometry/centroid.hpp`
2016-10-11 18:01:29 +02:00
artemp
af099a57ef
topojson grammar - change interface + instantiate with Iterator = char const*
to reduce binary size
2016-08-31 17:42:18 +01:00
artemp
31814b32d0
rename empty_featureset
=> invalid_featureset
to avoid ambiguity + add helper is_valid
method
2016-08-15 10:41:30 +01:00
artemp
bab985dd04
always return am empty featureset instead of featureset_ptr()
2016-07-13 15:17:51 +01:00
artemp
25217549f1
fix topojson parsing (work-in-progress)
2016-05-17 12:53:07 +02:00
artemp
6bd708af86
fix generic_json usage across grammars
2016-05-06 09:55:54 +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
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
8128a2b1ef
topojson - remove 'invalid' geometry type to avoid default constructed geometries
2015-09-10 19:28:15 +02:00
artemp
5e0050d005
topojson - use separate local boolean to track first geometry
2015-09-10 15:35:25 +02:00
artemp
fc100be61e
topojson : fix geometry index logic
2015-09-10 12:37:38 +02:00
artemp
8c6bf0eef6
update copyright notice
2015-06-16 12:49:16 +02:00
artemp
2e832586ab
use mapnik geometry!
2015-05-21 15:00:20 +01:00
artemp
4debc817b5
don't pass invalid bounding_boxes to boost::geometry::rtree_index
2015-05-21 11:52:30 +01:00
artemp
3b663af863
use boost::spirit::standard instead of boost::spirit::ascii to avoid assertions failing (isascii_(ch)) in debug builds - ref #2829
2015-05-21 11:27:21 +01:00
artemp
1cf0a897ac
move datasource::geometry_t into separate header and rename -> datasource_geometry_t to avoid cyclic dependencies issue
...
to_ds_type - return actual datasource_geometry_t (remove optional)
update across datasources
experssions - revert to using
2015-03-24 12:13:31 +01:00
artemp
89e516b493
unicode string grammar via boost/libs/spirit/example/qi/json/json/parser/grammar.hpp
...
update json based grammars
2015-02-02 11:22:54 +01:00
Dane Springmeyer
1753d0ab47
require boost >= 1.56 for geojson/topojson plugins
2015-01-27 22:20:03 -08:00
artemp
18554ec0b1
remove static_visitor usage and rely on automatic result type deduction
...
(NOTE: expression_evaluator requires ```using result_type = T1;``` )
Conflicts:
src/image.cpp
2015-01-07 11:39:06 +01:00
artemp
333965b588
update copyright year
2014-11-20 15:25:50 +01:00
Dane Springmeyer
aae4a20ec9
fix various -Wunused-parameter warnings
2014-10-21 20:23:17 -07:00
Dane Springmeyer
dac7170616
break out topojson parsing grammar
2014-10-15 18:59:39 -07:00
Dane Springmeyer
4e8125d2ad
use c file io wrapper in geojson/topojson plugins
2014-10-15 11:36:57 -07:00
Dane Springmeyer
ecdb12ac07
speed up topojson parsing - closes #2397
2014-09-04 20:26:52 -07:00
artemp
a4cd4821a0
ohh evil #ifdef/#endif - fix compiling with boost < 1.56
2014-08-21 12:21:47 +01:00
artemp
6dee6c1c86
fix typo :)
2014-08-21 11:40:42 +01:00
artemp
455168c6af
topojson - use bulk-loading packing algorithm for rtree creation
...
(http://www.boost.org/doc/libs/1_56_0/libs/geometry/doc/html/geometry/spatial_indexes/introduction.html )
use unique_ptr where appropriate
2014-08-21 11:14:33 +01:00
artemp
e4b3a46e3e
fix geojson plugin, even better name is geometry_index (to avoid confusion)
2014-08-20 16:08:41 +01:00
artemp
2d50a2dccc
topojson plugin : fix spatial index population, rename 'count' to 'index'
2014-08-20 16:00:12 +01:00
artemp
1e4368e97a
fix compilation with boost < 1.56
2014-08-20 09:42:28 +01:00
Dane Springmeyer
9020b8c6df
adapt geojson+topojson plugins to boost 1.56 - refs #2367
2014-08-19 14:48:21 -07:00
artemp
f57f3a7f83
ammend topojson_grammar and remove last boost::variant usage
2014-08-12 16:16:17 +01:00
artemp
43b8069698
topojson - revert to using boost::variant for mapnik::topojson::geometry (TODO)
2014-08-11 11:51:19 +01:00
artemp
ade32abcd8
mapnik::util::variant in mapnik::value
2014-08-08 12:13:49 +01:00
Dane Springmeyer
914b4c2e8b
support for inline topojson (in memory string) - closes #2058
2014-07-28 19:26:35 -07:00
Dane Springmeyer
9f9f981731
Static const topojson grammar for top speed - refs #2320
2014-07-28 19:17:07 -07:00
Dane Springmeyer
c5be70ff65
refactor spirit grammars
2014-07-24 14:31:59 -07:00
artemp
fe215a684e
c++11 style : replace (almost) all typedef with type alias's
2014-07-07 18:23:15 +01:00