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
> 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.

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.

Hope that helps

-- 
Gilles Bassière - MAKINA CORPUS
http://www.makina-corpus.com
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to