I am trying to generate tiles to be overlaid on google maps using mapnik,
and am close but the tiles look wrong on the map.

I have a shapefile, and am attempting to create a mapnik map using it
combined with an xml configuration file.  I then take the tile information
from google (tile coord x, tile coord y, zoom), and using this information,
create a bounding box.  I then zoom a 256x256 (google tile size) map
to this bounding box, and create a png file, which I tell google maps to
display as a tile.

It's pretty simple, but the png doesn't look correct when actually
overlaid on google maps.

Since I know there will be questions, I have attached a simple version
of my html page (with the google map widget), my mapnik xml file, the
shape file I am using for data, and the python code I am using to generate
the png.  I have also include a sample tile png file.

All those files can be found here:

https://r2-mapnik.s3.amazonaws.com/mapnik.tar

I have also uploaded a sample image of the poor result, in case someone
can diagnose the problem by seeing the symptom:

https://r2-mapnik.s3.amazonaws.com/bad_tile.tiff

Thank you for looking, and please let me know if I can clarify my problem
in any way.

David
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to