artemp
38da080f82
make concrete image_data type names more expressive and explicit about color channels/depth:
...
image_data_32 -> image_data_rgba8
image_data_8 -> image_data_gray8
image_data_16 -> image_data_gray16
image_data_float32 -> image_data_gray32f
NOTE: currently image_data_gray16::pixel_type = std::int16_t (signed 16 bit int) to match GDAL
should we support unsigned types?
2014-12-04 11:02:42 +01:00
artemp
de7a268333
read single band as int16 then agg_scale and colorize in gray16 color space, output rgb8 (aka image_data_32)
...
NOTE: proof-of-concept needed re-factoring/duplicate code removal
2014-12-03 18:19:44 +01:00
artemp
6fc8002dec
use new image_reader API
2014-12-03 10:58:05 +01:00
Dane Springmeyer
46215c0f35
fix compile of pgraster plugin
2014-12-03 00:35:34 -05:00
artemp
6fec43bf9e
gdal - read single band as image_data_float32
...
(scaling/compositing FIXME)
2014-11-28 12:51:23 +01:00
artemp
bf9c99e3d3
initial image_data_any implentation (work-in-progress)
2014-11-26 12:22:36 +01:00
artemp
33c1d21b7f
use four letter abriviations to determine datatypes ( https://www.sqlite.org/datatype3.html )
2014-11-25 11:09:42 +01:00
Artem Pavlenko
db4b74e8bb
Merge pull request #2580 from StevenLooman/master
...
Tests and fix for SQLite datasource missing column
2014-11-24 12:51:55 +01:00
artemp
ee9481cb38
feature_collection_grammar : allow passing start_id at parse time - #2582
2014-11-24 12:26:11 +01:00
Dane Springmeyer
62d5cf7f16
fix error message in geojson plugin
2014-11-21 19:57:24 -08:00
Steven Looman
07a07c6268
Default to string type when column type could not be determined. Refs #2579
2014-11-20 18:48:31 +01:00
artemp
333965b588
update copyright year
2014-11-20 15:25:50 +01:00
Dane Springmeyer
437d486bbd
fix building with PLUGIN_LINKING=static
2014-11-11 14:42:53 -08:00
Dane Springmeyer
4a2735fe91
c++ style: use reinterpret_cast rather than c style casts
2014-11-10 16:53:58 -08:00
Robert Coup
76d5bdae8c
Merge pull request #2556 from stephend/master
...
Throw datasource_exception on GDAL RasterIO() failures
2014-11-05 18:21:13 +13:00
Dane Springmeyer
a65987af31
geojson plugin: fix compile against boost 1.57
2014-11-04 11:41:23 -05:00
Stephen Davis
824c99f565
throw datasource_exception on GDAL RasterIO failures
2014-11-03 11:24:38 +13:00
Dane Springmeyer
f34ac45b86
remove unneeded osm files - refs #2547
2014-10-27 08:56:58 -07:00
Jérémy Lal
87f9481621
Add missing argument to mapnik::raster call
2014-10-24 14:58:16 +02:00
Dane Springmeyer
15a2acf0d5
silence warnings in pgraster plugin - refs #2356
2014-10-22 15:33:25 -07:00
Dane Springmeyer
ca3078938c
simplify and install mapnik wkt and json libs
2014-10-22 00:09:22 -07:00
Dane Springmeyer
aae4a20ec9
fix various -Wunused-parameter warnings
2014-10-21 20:23:17 -07:00
Dane Springmeyer
d25f0c316a
silence more warnings
2014-10-21 17:44:47 -07:00
Dane Springmeyer
87192bfcb7
silence more boost warnings
2014-10-21 16:57:44 -07:00
Dane Springmeyer
83588937b9
silence boost warnings
2014-10-21 16:37:27 -07:00
Dane Springmeyer
18183aed2a
fix a few -Wunused-parameter warnings
2014-10-20 22:28:40 -07:00
Dane Springmeyer
dac7170616
break out topojson parsing grammar
2014-10-15 18:59:39 -07:00
Dane Springmeyer
bdb1f900eb
sync code between geojson and topojson rtree impl
2014-10-15 18:51:53 -07:00
Dane Springmeyer
4e8125d2ad
use c file io wrapper in geojson/topojson plugins
2014-10-15 11:36:57 -07:00
artemp
2e4c5b3ee0
use finer control over rtree instantiation
2014-10-15 15:15:31 +01:00
Dane Springmeyer
1c80cfe44f
fix geojson plugin linking #2535
2014-10-14 20:26:13 -07:00
Jiri Drbalek
959451af5d
sqlite plugin - disable shared cache for sqlite prior to 3.7.15
2014-10-13 13:07:21 +00:00
Dane Springmeyer
44bc5b59d6
break out wkt/json grammars into separate libraries
2014-10-13 01:06:36 -07:00
Jiri Drbalek
b6438a80d1
fix multiple attach to the same sqlite database
2014-10-01 14:02:38 +00:00
Dane Springmeyer
4cbc139689
remove boost::format usage
2014-09-30 18:35:07 -07:00
Dane Springmeyer
c53bcd99a6
csv plugin: only attempt to parse ascii as numbers - closes #2450
2014-09-30 16:30:45 -07:00
Jochen Topf
da2c0a6949
Use std uint8_t instead of boost::uint8_t
...
Broke compilation
2014-09-30 15:58:29 +02:00
Dane Springmeyer
41b0e0e16b
remove scoped_array include
2014-09-29 19:43:00 -07:00
Dane Springmeyer
5e250e0dd9
avoid boost stdint usage
2014-09-29 19:42:34 -07:00
Dane Springmeyer
ecdb12ac07
speed up topojson parsing - closes #2397
2014-09-04 20:26:52 -07:00
Dane Springmeyer
7d5d02e031
Merge branch 'master' of github.com:mapnik/mapnik into 3x-msvs
2014-09-04 09:22:53 -07:00
artemp
72e2f4446f
re-implement mapnik::value deriving from value_base and update across core
...
fix mapnik::value conversions in topojson plugin
2014-09-04 17:10:13 +01:00
Dane Springmeyer
d577ef8719
Merge branch 'master' of https://github.com/mapnik/mapnik into 3x-msvs
2014-08-29 18:56:43 -07:00
Dane Springmeyer
6074e87bbb
include optional - fix msvs compile - refs #2396
2014-08-28 19:29:07 -07:00
Dane Springmeyer
8faa358067
Merge pull request #2400 from mapnik/single-pass-json
...
Drop multi_pass iterator
2014-08-28 19:12:04 -07:00
artemp
ecfaec1027
rename ctrans.hpp to view_transform.hpp
2014-08-28 10:29:04 +01:00
artemp
de22d5900c
rename CoordTransform to view_transform to better reflect its purpose and be consistent
2014-08-28 10:17:15 +01:00
Dane Springmeyer
f6a7bddca3
Merge pull request #2394 from strk/master-pgis-simplify-20th
...
Bring postgis simplification factor back to 1/20 of a pixel
2014-08-26 21:25:24 -07:00
Dane Springmeyer
cc970dea1c
remove unused statistics member
2014-08-26 18:36:01 -07:00
Dane Springmeyer
616896c6ee
remove spirit::multi_pass - refs #2397
2014-08-26 16:22:12 -07:00
Sandro Santilli
0d098a0467
Bring postgis simplification factor back to 1/20 of a pixel
...
This was the value in 2.2.x and was accidentally changed as part
of a completely unrelated commit, see:
http://github.com/mapnik/mapnik/issues/1639#issuecomment-53388951
2014-08-26 13:03:22 +02:00
Dane Springmeyer
3e1ab9beab
fix gdal compile with msvs 2013 - closes #2257
2014-08-25 17:50:45 -07:00
Dane Springmeyer
225810e3ee
ogr: also accept 'inline' arg like geojson/topojson/csv plugins
2014-08-25 11:59:32 -07:00
Dane Springmeyer
7cb907e13f
avoid warning from boost geometry
...
Conflicts:
plugins/input/geojson/geojson_datasource.hpp
2014-08-24 16:00:27 -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
Sandro Santilli
01b56c3606
Add mention of CartoDB support in pgraster input plugin code
2014-08-20 17:31:41 +02:00
artemp
fd7682aab2
c++ pedantic
2014-08-20 16:11:27 +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
Dane Springmeyer
7c1f9b1490
fix compile with older OGR
2014-08-18 21:33:37 -07:00
Dane Springmeyer
a4c926ac8a
don't throw for OGR layers with no features - refs #2260 #2352 #2354
...
Conflicts:
tests/python_tests/ogr_test.py
2014-08-15 19:49:33 -07:00
artemp
1d02eb0d1d
Merge branch 'master' into custom-variant-2
2014-08-13 09:06:58 +01:00
Dane Springmeyer
6ec3905fc5
fix redefinition warnings + dodge a compile error due to clashing toupper in python + clib by using iosfwd - closes #2355
2014-08-12 23:52:31 -07:00
Dane Springmeyer
7da05accc0
Merge branch 'master' of github.com:mapnik/mapnik into custom-variant-2
2014-08-12 23:19:26 -07:00
Joel Brown
c517b20237
add ogr plugin error handling to master/3.x
2014-08-12 23:09:42 -07:00
Dane Springmeyer
44844f7bd0
postgis: disable NOTICES by default - refs #2296
2014-08-12 20:30:34 -07:00
Dane Springmeyer
e4c7e2419c
make sure pgraster is rebuilt if headers change inside the postgis plugin dir
2014-08-12 20:29:51 -07:00
Dane Springmeyer
e03448ecb9
port pg_raster plugin to c++11/recent 3.x changes
2014-08-12 15:14:25 -07:00
Dane Springmeyer
4e12b999f0
pull in pgraster plugin by @strk from 2.3.x to master/3.x - refs #2329 #1660
2014-08-12 15:03:51 -07:00
artemp
6136a32092
Merge branch 'master' into custom-variant-2
2014-08-12 19:44:37 +01:00
Dane Springmeyer
c604e925f5
apply #2350 to master/3.x too
2014-08-12 11:44:34 -07:00
Dane Springmeyer
a13fa6720a
csv: parse true/false as boolean in csv plugin - closes #1540
2014-08-12 11:16:05 -07:00
artemp
fb2dd283c0
fix DEBUG=yes compilation
2014-08-12 19:10:32 +01:00
Dane Springmeyer
c55a3c3130
csv plugin: support conversion to boolean types - closes #1540
2014-08-12 10:00:37 -07:00
artemp
f57f3a7f83
ammend topojson_grammar and remove last boost::variant usage
2014-08-12 16:16:17 +01:00
artemp
95cea92a4a
convert all boost::variant to util::variant
...
apart from topojson (TODO)
2014-08-12 13:40:45 +01:00
artemp
e315922b70
Merge branch 'master' into custom-variant-2
...
Conflicts:
include/mapnik/value.hpp
2014-08-11 11:53:59 +01:00
artemp
43b8069698
topojson - revert to using boost::variant for mapnik::topojson::geometry (TODO)
2014-08-11 11:51:19 +01:00
Dane Springmeyer
d61efc0b5a
-fvisibility=hidden fixes on osx with -flto
2014-08-09 13:44:42 -07:00
artemp
ade32abcd8
mapnik::util::variant in mapnik::value
2014-08-08 12:13:49 +01:00
Dane Springmeyer
d27b45553a
use emplace/emplace_back over insert/push_back - refs #2336
2014-08-05 15:19:37 -07:00
Dane Springmeyer
05f49f9cac
visual tests - keep default debug severity levels
2014-08-04 19:18:38 -07:00
artemp
3b707d1c79
opps - remove unused itarators decl
2014-07-30 16:41:10 +01:00
artemp
eee750e074
c++11 - range based for loop (tidy)
2014-07-30 16:39:49 +01:00
artemp
61c05bfb45
re-use feature_collection_grammar
2014-07-30 11:28:23 +01:00
artemp
3f5344ca82
geojson - make feature_collection_grammar not dependend on mapnik::context
2014-07-30 11:01:54 +01:00
Dane Springmeyer
8feedd94cd
rename mapnik::boolean to mapnik::boolean_type - closes #1899
2014-07-28 19:46:49 -07: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
5fc2e01531
fix geojson plugin by avoiding static const grammar for now
2014-07-28 18:44:56 -07:00
Dane Springmeyer
14d9127bb7
Merge pull request #2305 from strk/master-readonly
...
Ensure read-only transactions
2014-07-28 18:00:59 -07:00
Dane Springmeyer
d55a0010dc
also move feature_collection_grammar to impl file
2014-07-28 16:51:24 -07:00
Dane Springmeyer
7f0029eb0b
implement inline (in-memory string) support for GeoJSON plugin - refs #2058
2014-07-28 16:16:10 -07:00
Dane Springmeyer
c5be70ff65
refactor spirit grammars
2014-07-24 14:31:59 -07:00
Dane Springmeyer
11b0816d2a
sqlite plugin: use mapnik::geometry_container alias
2014-07-24 12:08:16 -07:00
Dane Springmeyer
d1336568c5
workaround old GDAL bug regarding rgba images and alpha reporting - closes #2310
2014-07-22 14:33:59 -07:00