2009/12/23 Gilles Bassière <[email protected]> > Cristian Salamea wrote: > > Hi folks, i am new in mapnik and get experience with django, now i want > > to read about how integrate this two great tools, maybe you can guide me > > with info or some papers about. > > > > best regards, > > > > -- > > Cristian Salamea > > http://gnuthink.com > > https://edge.launchpad.net/~gnuthink<https://edge.launchpad.net/%7Egnuthink> > > CEO GnuThink Software Labs > > Software Libre / Open Source > > Mobil: (+593-8) 4-36-44-48 > > Oficina: (07) 285 -6206 ext. 109 > > Hi Cristian, > > It depends on what you want to do. > > It's quite easy to have a Django view returning a map image using Mapnik > Python bindings. You would simply write the image to the HttpResponse > object. >
I need vectorial data. > > If you use GeoDjango, you will probably need to draw some of your model > instances on the Mapnik map. For this purpose, you could create a > PostGIS DataSource object and point it to the relevant tables in your > model backend. I don't know how it would work if your DB backend is not > Postgres/PostGIS however. This solution is not portable and > unfortunately does not rely on Django QuerySet objects but I don't know > any better solution. > Yes, i am using postgis, really i always use postgres, i am going to read something about draw my models instances on the mapnik, i also find everyblock code[1] it get some code with mapnik and defined as: "A simple wrapper class around Mapnik's Map that provides a little friendlier interface to setting up a basic map and for common tasks." I see the maps what mapnik produce and are so beauty, but i need more GIS knowledge. Thanks, [1] http://code.google.com/p/ebcode/ > > Hope that helps > > -- > Gilles Bassière - MAKINA CORPUS > http://www.makina-corpus.com > -- Cristian Salamea http://gnuthink.com https://edge.launchpad.net/~gnuthink CEO GnuThink Software Labs Software Libre / Open Source Mobil: (+593-8) 4-36-44-48 Oficina: (07) 285 -6206 ext. 109
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

