77 Commits

Author SHA1 Message Date
e5b221f38d fix clang-format -
+BreakConstructorInitializers: BeforeColon
+PackConstructorInitializers: Never
2025-07-14 14:42:10 +01:00
f92b459b73 Update copyright year to 2025 [skip ci] 2025-06-24 16:23:12 +01:00
fc029ae5a5 Update Coopyright year 2024-07-22 10:20:47 +01:00
a65d65a5ab Update .clang-format to BraceWrapping: BeforeCatch : true
run `pre-commit`
2022-11-10 15:57:38 +00:00
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
bd961c4da2 update copyright year [skip ci] 2021-01-05 14:39:07 +00:00
333ef9fde1 update copyright year 2017-05-05 13:02:01 +02:00
5745bedbd9 update copyright year to 2016 2016-12-20 17:57:22 +01:00
c3ccff4f02 shape.input - add stream state check and calculate position limit 2015-10-21 16:33:12 +01:00
17ace8a3e8 shape.input - read shx_file_length in shape_featureset and avoid passing wrong file length by mistake ref #3136 2015-10-21 10:55:26 +01:00
ab2d86c617 shape.input: remove set_id() method as it's no longer required ref #1020 #1019 2015-10-20 14:18:17 +01:00
b798503623 shape.input - pass shx_file_length to shape_featureset 2015-10-15 11:49:18 +01:00
a73e8537d8 shape.input - add support for reading offset/record_length from *.shx in shape_featureset (no *.index) - ref #3126 2015-10-14 16:44:43 +01:00
8c6bf0eef6 update copyright notice 2015-06-16 12:49:16 +02:00
87fb41907a Added template to geometries 2015-04-09 15:22:51 -05:00
4389c80d84 and finaly, rename 'new_geometry' namespace to 'geometry' 2015-03-24 14:21:28 +01:00
ac1ffa2bfb move geometry.hpp into path.hpp and update code base to reflect this change 2015-03-24 12:42:09 +01:00
33d45db318 c++ style - better syntax 2015-02-19 10:20:17 +01:00
b49b8042c1 shape.input/agg - add polygon3 support 2015-02-18 18:12:47 +01:00
8e34077aef more cleanups 2015-02-18 13:51:20 +01:00
604d7b08af use reserve to pre-allocate line_strings + cleanups 2015-02-18 13:48:05 +01:00
2e4e1f71b8 adapt to use mapnik::new_geometry::geometry (shape.input only) 2015-02-18 13:21:16 +01:00
333965b588 update copyright year 2014-11-20 15:25:50 +01:00
7adee4ab36 c++11 : remove boost::make_shared includes 2013-10-17 15:09:56 +01:00
b315eb2167 + use std::shared_ptr and std::make_shared 2013-09-20 14:01:27 +01:00
d4b9a48cb1 + geometry::types Exterior/Interior polygon loops 2013-09-03 12:15:31 +01:00
c73e48fa58 + use std::unique_ptr instead of std::auto_ptr (deprecated!) 2013-04-19 09:50:50 +01:00
4bd5484cdb fixup includes and value type and params usage across plugins 2013-01-04 09:23:06 -08:00
02bb955b59 + simplify and refactor shape featuresets to be more resilient to various
quirky shapefiles.
+ fix io navigation functions to use std::streampos
2012-12-11 09:37:53 +00:00
da0d74529d + fix record length check to account for OGR not writing PointZ according to
shapefile spec - PointZ: type,x,y,z,measure  (#1193, #504)
2012-12-06 15:14:06 +00:00
46ee60b398 fix row_limit behavior in shape.input to stop reading when count = row_limit, not just when count > row_limit 2012-11-28 14:15:53 -08:00
74342e3083 - no need to #ifdef all the time: the compiler should optimize out the log calls when no MAPNIK_LOG is defined
- initially got rid of those ifdefs in plugins only
2012-04-09 12:05:49 +02:00
8c58a9aa73 - improved again the logging facilities
- aligned the plugins to using the new methods with severity
- implemented per object severity, with fallback to global (with global functions to set them programmatically)
- initial check in of logger python bindings (todo)
2012-04-09 03:00:51 +02:00
1f351e0e09 implement new debug system 2012-04-08 02:20:56 +02:00
0e701dd899 initialize context in init list 2012-02-02 08:58:20 -08:00
77c58e487d whitespace fixes 2012-02-01 17:37:35 -08:00
7601095e24 move context's typedef inside to avoid poluting global namespace 2012-01-19 17:36:27 -05:00
e1ba3f723d add issue # to code comments 2012-01-17 13:33:35 -05:00
86ea7f2951 remove unused data members 2012-01-12 12:28:53 +00:00
0bb8adbbdc factor out common code to reduce duplication (shape_utils) 2012-01-12 12:18:50 +00:00
3bd41e45a4 upgrade shape.input to new feature impl 2012-01-12 10:04:08 +00:00
02dce6a756 make shape_io work with geometry_container concept 2011-12-09 12:25:13 +00:00
ce9e44b5f2 plugin code formatting based on emacs format in utils/format_source_files 2011-11-13 19:37:50 -08:00
a7b67566b2 - modified coding style in shape plugin 2011-10-22 15:27:28 +02:00
7121f6269a add row_limit option to shapefile driver to allow limiting the number of features rendered - closes #741 2011-08-26 07:02:36 +00:00
4b09f3d750 + skip null shapes 2011-08-12 16:43:28 +00:00
9a49b81318 + check if pos is valid while iterating through
shapes (don't use eof()!)
+ handle null_shapes better (TODO:testing)
2011-08-11 11:04:19 +00:00
17854e6c4f shape: improve the error message when an invalid attribute is requested 2011-08-05 21:20:21 +00:00
e4329847d2 shape.input: re-assign feature id's once we know their correct value after reading geometry up to the dbf link - TODO - we should be able to look ahead to avoid this re-assign 2011-05-20 01:41:28 +00:00
978dc29568 detect top level shape geometry type and throw if multipatch since we don't support it 2011-05-19 21:48:45 +00:00