Mapnik c++ symbolizer_with_image

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Mapnik c++ symbolizer_with_image

HSylvio

Dear all,

sorry for this question will look stupid to most of you, but I can't afford
to using any symbolizer_with_image
(point_symbolizer, polygon_pattern_symbolizer, shield_symbolizer nor
line_pattern_symbolizer), while I can draw roads, polygons text and
points...

Examples from wiki give

   point_symbolizer sym("/tmp/pub.png","png",16,16);
 
   rule.append(polygon_pattern_symbolizer("path/to/icon.png", "png", 20,
20)); // file, type, width, height
 
   rule.append(line_pattern_symbolizer("/path/to/icon.png", "png", 20, 20));
// file, type, width, height
and the same kind with shield_symbolizer.

but my compiler will not accept these, as the constructor of
(symbolizer_with_image) expects a path_expression_ptr or expression_ptr
argument (as well as the set_filename function).

What did I miss??

Thanks for your suggestions;
Best,
HS.

using mapnik 2.0.0 and GCC C++ Compiler;
An error example mentioning path_expression_ptr:

../src/MapnikTester.cpp:570:107: error: no matching function for call to
‘mapnik::polygon_pattern_symbolizer::polygon_pattern_symbolizer(const char
[41])’
../src/MapnikTester.cpp:570:107: note: candidates are:
/usr/local/include/mapnik/polygon_pattern_symbolizer.hpp:46:5: note:
mapnik::polygon_pattern_symbolizer::polygon_pattern_symbolizer(const
mapnik::polygon_pattern_symbolizer&)
/usr/local/include/mapnik/polygon_pattern_symbolizer.hpp:46:5: note:   no
known conversion for argument 1 from ‘const char [41]’ to ‘const
mapnik::polygon_pattern_symbolizer&’
/usr/local/include/mapnik/polygon_pattern_symbolizer.hpp:45:5: note:
mapnik::polygon_pattern_symbolizer::polygon_pattern_symbolizer(mapnik::path_expression_ptr)
/usr/local/include/mapnik/polygon_pattern_symbolizer.hpp:45:5: note:   no
known conversion for argument 1 from ‘const char [41]’ to
‘mapnik::path_expression_ptr {aka
boost::shared_ptr<std::vector<boost::variant<std::basic_string<char>,
mapnik::attribute> > >}’
make: *** [src/MapnikTester.o] Error 1
--
View this message in context: http://old.nabble.com/Mapnik-c%2B%2B-symbolizer_with_image-tp33419785p33419785.html
Sent from the Mapnik - Users mailing list archive at Nabble.com.

_______________________________________________
Mapnik-users mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/mapnik-users