Commit graph

8380 commits

Author SHA1 Message Date
artemp
22a1df8388 Merge branch 'master' into image-readers-c++11
Conflicts:
	include/mapnik/factory.hpp
2013-04-18 09:48:31 +01:00
Dane Springmeyer
83eb8f2595 fix handling of null values for feature id in sqlite/postgis input - closes #1817 2013-04-17 15:34:21 -07:00
Dane Springmeyer
8c2d314413 fix visual test reporting to show test that could not be run rather than just 0 2013-04-17 15:33:31 -07:00
Dane Springmeyer
19b777455e also translate std::out_of_bounds => IndexError otherwise new std::exception => runtime catch will override - refs #1816 2013-04-17 15:28:48 -07:00
Dane Springmeyer
60c6592c4e fix spelling of unknown 2013-04-17 14:23:04 -07:00
Dane Springmeyer
dac0e14068 add test for #1816 2013-04-17 13:40:48 -07:00
Dane Springmeyer
20b643a22a add missing exception translator for datasource exceptions by catching std::exception - closes #1816 2013-04-17 13:40:48 -07:00
Dane Springmeyer
0a68f66c35 fixup postgis null comparision tests 2013-04-17 13:40:48 -07:00
Dane Springmeyer
243470d670 Merge pull request #1814 from strk/master-more-float-tests
Add a couple more float to string conversion tests
2013-04-17 09:49:31 -07:00
artemp
bd3423a822 + output webp
quality=100 -> demo.webp
quality=80  -> demo-med.webp
qiality=50  -> demo-low.webp

TODO: support other webp writing options
2013-04-17 14:52:01 +01:00
artemp
77e71d726b + add webp support 2013-04-17 14:51:20 +01:00
artemp
da6c630db9 + add webp writing support 2013-04-17 14:50:35 +01:00
artemp
868d60d765 + add getBytes() method ( needed by webp i/o) 2013-04-17 14:46:11 +01:00
artemp
cc5788e9c4 Merge branch 'master' into image-readers-c++11 2013-04-17 10:17:03 +01:00
Sandro Santilli
0ecf7e5728 Add a couple more float to string conversion tests
See #1811
2013-04-17 11:00:27 +02:00
Dane Springmeyer
294b10229e disable the hsla image-filter - not yet ready for primetime 2013-04-16 19:09:40 -07:00
artemp
c5170290f8 + image_reader : consistent error handling - throw image_reader_exception rather than returning 0 pointer. 2013-04-16 17:30:17 +01:00
artemp
b9e66c82de + update image_io test to support WEBP 2013-04-16 11:36:23 +01:00
artemp
9020e6f439 type_from_filename : add webp support 2013-04-16 10:56:10 +01:00
artemp
1b90879d12 webp_reader : implement reading from file 2013-04-16 10:48:21 +01:00
artemp
b8637a900e + fix crop width/height calc 2013-04-15 18:04:27 +01:00
artemp
77a8a6c8ee + fixes and improved error handling 2013-04-15 17:54:10 +01:00
artemp
1eb2ec5ce7 + cleanup include directives 2013-04-15 14:01:33 +01:00
artemp
e59bf22fbd WEBP image reader
+ add initial support
2013-04-15 14:00:41 +01:00
artemp
9584b3634f + no iostreams lib dependency version 2013-04-12 16:10:09 +01:00
artemp
28ea89fe1c + remove const& qualifier 2013-04-12 16:03:08 +01:00
artemp
438bfad732 + factory : variadic templates based implementation ( requires c++11)
+ image_reader : stream based reading interface (boost::iostreams)
+ register additional png and jpeg readers with following sigs :

  ```
  std::auto_ptr<mapnik::image_reader> reader(mapnik::get_image_reader(buffer,size));
  // buffer - char const*
  // size - size_t
  ```
+ initial type_from_bytes implementation (TODO: add more types)
+ python : mapnik.Image.fromstring(str) mapnik.Image.frombuffer(buf)
2013-04-12 12:46:40 +01:00
Dane Springmeyer
60eee883e5 Add empty string equality to null test 2013-04-11 16:09:57 -07:00
Dane Springmeyer
9da1f35b5e plugins do not need to store nulls / save space - refs #1644 2013-04-11 16:05:29 -07:00
Dane Springmeyer
6691267d7a add null and boolean comparison test for postgis - refs #794, #1642, #1644 2013-04-11 15:55:30 -07:00
artemp
37b74f1e15 + fix memory font loading 2013-04-11 10:57:33 +01:00
Dane Springmeyer
5de4636be8 use mapnik::noncopyable 2013-04-10 18:15:09 -07:00
Dane Springmeyer
c55002e9b7 mapnik-config: start reporting dependency link flags again as they are needed to link command line apps (though not for bundles) 2013-04-10 17:05:33 -07:00
artemp
bfaee4afae + avoid std::string->C-string->std::string round trip 2013-04-10 12:44:05 +01:00
artemp
48fa520a83 + figure out raster format from file name unless explicitely specified by
'format' parameter.
2013-04-10 12:16:19 +01:00
Artem Pavlenko
06e629112d Merge pull request #1804 from mapnik/drop-ltdl-dependency
remove ltdl
2013-04-10 02:30:29 -07:00
Dane Springmeyer
79a216f349 remove ltdl to reduce dependencies and because calling dlopen/LoadLibrary is easy 2013-04-09 19:37:02 -07:00
Dane Springmeyer
a8e2ef7cc7 set TIFFSetErrorHandler to null to start to avoid tiff from printing to stderr on fail - refs #1783 2013-04-09 19:16:05 -07:00
Dane Springmeyer
72a453efc0 add missing test file 2013-04-09 19:12:27 -07:00
Dane Springmeyer
771cbb11bf fix memory leak when reading invalid tiff - refs #1783 2013-04-09 19:08:50 -07:00
Dane Springmeyer
16e2e8a06f refactor jpeg reader to close fd after read - refs #1783 2013-04-09 18:36:02 -07:00
Dane Springmeyer
6e29ceb55f further cleanup png struct handling - refs #1783 2013-04-09 17:43:15 -07:00
Dane Springmeyer
97eda69015 avoid png_struct leak - refs #1783 2013-04-09 17:37:44 -07:00
Dane Springmeyer
dfb65d810c avoid unused arguments compiler warning 2013-04-09 16:51:30 -07:00
artemp
c47d5f1916 Merge remote-tracking branch 'origin/master' 2013-04-09 11:40:13 +01:00
artemp
b6ce472414 + add png file guard 2013-04-09 11:39:16 +01:00
artemp
a25f1ccb56 + make image_reader non-copyable 2013-04-09 11:38:50 +01:00
artemp
270b66318d + mapnik c++ naming style 2013-04-09 11:34:20 +01:00
kunitoki
28db742508 Merge branch 'master' of github.com:mapnik/mapnik 2013-04-09 08:40:02 +02:00
kunitoki
e919e96484 - added testcase for wkb format parser (still to be extended). complement of 4d85cd2c43 2013-04-09 08:38:48 +02:00