2009/12/25 Dane Springmeyer <[email protected]> > Cristian, > > Can you tell us more about your existing usage of GeoDjango? Do you have > django models that have spatial data columns yet? If not then you may want > to download some of the sample GeoDjango projects from geodjango-basic-apps. > If you do >
Yes i did, my basemap data is loaded (points, polygons, etc), and configured with geoadmin. > already have models that use geodjango then rendering with Mapnik may be > the next step. Along these lines I've written code to render django > querysets and model instances to Mapnik but this code is not public ATM. > However that's the easy part and the real challenge to getting beautiful > maps is creating stylesheets for Mapnik which is a topic indepedent of > django. For that issue I'd recommend looking into Cascadenik. > and yes , i want to render my models with mapnik, i am reading and testing mapnik-utils, but my first issue is render models and querset as you said, if you can help me with a little example should be great. best regards, > > > > Dane > > --- \o/ --- > Sent from my phone > > On Dec 23, 2009, at 7:39 PM, Cristian Salamea < > [email protected]> wrote: > > > > 2009/12/23 Gilles Bassière < <[email protected]> > [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>http://gnuthink.com >> > <https://edge.launchpad.net/%7Egnuthink> >> 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/>http://code.google.com/p/ebcode/ > >> >> Hope that helps >> >> -- >> Gilles Bassière - MAKINA CORPUS >> <http://www.makina-corpus.com>http://www.makina-corpus.com >> > > > > -- > Cristian Salamea > <http://gnuthink.com>http://gnuthink.com > <https://edge.launchpad.net/%7Egnuthink> > 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 > > _______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users > > -- 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

