On Dec 3, 2007 10:01 PM, Richard Duivenvoorde <[EMAIL PROTECTED]> wrote: > Thanks for your answer, I'll have a look in your code this week. But it > would be really helpful if you could provide a simple tutorial code > project in which you interactively draw something on a mapcanvas > (polylines/text?). So if you have some spare time the coming days ;-)
Not much spare time nowadays, but I'll keep it in my mind :) > This raises another question: what would be the best way to save this > kind of stuff IIF possible). We could indeed save it in a postgres table > (mixed geometries), or maybe in a set of shapefiles. But it would be > nicer if there was a way to 'serialize/pickle?' stuff for example as > part of the project file? Or as a separate 'annotations' file? > Any ideas about that? In fact you can use QGIS project files to save plugin-specific data for a plugin - see QgsProject class. In case you'd like to be able to use one set of annotation for different project it would be wiser to save them separately - in a file or a database. Using files for saving annotations (e.g. with python serialization) should be easier to use for user as they won't need to set up a database/table for them etc. And actually user would expect that annotation plugin should work also without postgres database. Martin _______________________________________________ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user