Hi Joel,
On 19 April 2010 17:49, Joel Odom <[email protected]> wrote: > (I originally posted this to the IRC channel, but I didn't get an > answer. I'm working in C++. Thanks for any advice!) > You're welcome. > > I'm trying to add what I think of as "fields" to features I've put on > a memory data source. (By fields, I mean things like "name" or > "elevation" or other things like that.) Is that what Mapnik calls > properties (props) on a feature? If so, how can I add fields to > features on my memory data source? > Have a look in plugins/input/postgisfs.cpp for example : .... boost::put(*feature,name,val); // val can be int, double, bool, UnicodeString see <mapnik/value.hpp> ... Note that mapnik uses unicode strings exclusively, so for unicode strings: UnicodeString ustr = tr_->transcode(buf); boost::put(*feature,name,ustr); HTH Regards, Artem Pavlenko > > -- > http://www.operationliberate.com/ > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users >
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

