bradh / mapnik-utils

Automatically exported from code.google.com/p/mapnik-utils
0 stars 0 forks source link

Dummy question: how to use Cascadenik with Mapnik world borders ? #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 

I'm facing a problem with the built of an osm.xml file with Cascadenik. 

I followed the examples on the tutorial provided here 
http://mapnik-utils.googlecode.com/svn/trunk/serverside/cascadenik/doc/index.htm
l and it works if I used the world borders data set provided within the 
examples (http://cascadenik-sampledata.s3.amazonaws.com/world_borders.zip)

Nevertheless, as I have noticed problems with these world borders (for instance 
Spain and Portugal are in the ocean with my rendering), I tried to use world 
boundaries provided by Open Street Map (the ones explained and available on 
http://wiki.openstreetmap.org/wiki/Mapnik#World_boundaries)

And it does not work despite all my tentatives (processed_p world_bnd_m 
world_boundaries_m shoreline_300 ) because the maps / rendering generated with 
these shapes datasource stay blank and blue (while it works great with world 
borders provided within Cascadenik examples). 

Any idea ? Any help is welcome !

Please find below examples of my mms / xml files. 

Thanks for your help, 

Best regards, 

Alexandre

Original issue reported on code.google.com by abossere...@gmail.com on 16 Jul 2010 at 3:00

Attachments:

GoogleCodeExporter commented 9 years ago
Alexandre,  I assume the problem you are having has to do with the fact that 
you are reprojecting the shapefile to google mercator?

processed_p and friends are cleaned up and ready to be rendering in google 
mercator (the standard osm projection). 

Can you confirm your target projection - or, alternatively your general goals?

Original comment by dane.spr...@gmail.com on 16 Jul 2010 at 8:28

GoogleCodeExporter commented 9 years ago
note, you may want to fix up your OL file, using a map constructor more like:

http://code.google.com/p/mapnik-utils/source/browse/example_code/tilecache/openl
ayers_osm.html

Original comment by dane.spr...@gmail.com on 16 Jul 2010 at 8:30

GoogleCodeExporter commented 9 years ago
Hello Dane, thanks a lot for your first comment ! 

Indeed, the shape files I want to use (processed_p world_bnd_m 
world_boundaries_m shoreline_300) are in Google Projection (EPSG:900913), but 
the default projection in the MML / XML files was WGS84.

I just modified the MML /XML files to use the Google Projection (EPSG:900913) 
and... it works great !!!! 

Please find attached the correct files (which are working fine for me) if any 
other user is facing the same issue...

Best regards and thanks again,

Alexandre

Original comment by abossere...@gmail.com on 19 Jul 2010 at 8:51

Attachments: