mapnik

How can I use a Mapnik-Backgroundlayer with lat-lon layers in one map with OpenLayers?

I have an application with a map-client using OpenLayers. I want to use Mapnik-data as background-layer, as provided with the class OpenLayers.Layer.OSM.Mapnik. For that I have to switch to the projection EPSG:900913. But I also want to display some layers, that I can only request in EPSG:4326. Can I combine both layers with the differen...

Using data from a dataset in styles with Mapnik

I've setup Mapnik to connect to a PostGIS database, and display geometry. I'd like to have a column in my database called opacity, and use it as the opacity for that row of geometry when Mapnik renders it. So far, I've only found information on how to display text from the database, and how to use filters to display different styles wh...

How to control mapnik PointSymbolizer symbol alignment?

I'm using mapnik to draw a layer with bitmap images. It works good, but it looks like the bottom-right of the image is the x, y of my coordinates. How to align the image so that the center of the image is placed on my coordinates? point_looks = mapnik.PointSymbolizer(output_filename_abs, 'png', 32, 32) layout_rule = mapnik.Rule() layou...

how do i remove overlapping lines in postgis

I have a typical database with millions of polygons as land parcels and i want to split these polygons onto lines and then remove the lines that overlap eachother. These lines will be used purely for rendering in mapnik/and or geoserver as at the moment every parcel boundary gets rendered twice. i propose to split the parcel polygons i...

Mapnik ignoring my lat long bounding box

Can anyone see anything wrong with the following set of commands? Every time I run these image.png is a image of the UK and not the JOSM map I exported. I'm guessing there's something awry with the db import however the output mentions that it's processing my coords and data. Steps: 1 - Exported a .osm file from JOSM or Merkaator. 2 -...

How to install mapnik on SLES 11 64 bit?

For a customer I have to install a django webserver on SUSE Linux Enterprise Server 11, 64 bit (short: SLES 11). Our application makes use of mapnik 0.7.0. My development environment is Ubunto 10.44. How do I install mapnik 0.7.0 on my SLES 11 machine? My first difficulty is to compile boost. Maybe it's handy to use SUSE Linux Enterpris...