Hi all, I'm new to the list. I want to use the mapnik's c++ api to render my custom data. AFAK, the most usual way may be write a plugin, i.e. a new data_source. So I compiled the source based on this page: http://www.falconview.org/trac/FalconView/browser/Sandbox/MAPNIK%20README.txt?rev=2479, and also the shape plugin. Then, I compiled the rundemo with debug lib, but the demo crash on this line :"datasource_cache::instance()->register_datasources(mapnik_dir + "/input/"); ". After step into trace, I found in "datasource_cache::register_datasources(const std::string& str)", these code : "datasource_name* ds_name = (datasource_name*) lt_dlsym(module, "datasource_name"); if (ds_name && insert(ds_name(),module)){...}" the ds_name() returned a NULL pointer. This puzzled me a lot, and after several recompiling, still can't solve it. It will be grateful, if some one can help me out. Further more, I want to learn some idea about how to write a plugin to offer mapnik with new data source or directly render custom data by mapnik.
sincerely, zsj -- View this message in context: http://old.nabble.com/How-to-utilize-the-c%2B%2Bapi-to-render-custom-data-on-windows--tp28254891p28254891.html Sent from the Mapnik - Users mailing list archive at Nabble.com. _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

