Hi Tommaso,

So, 'mapnikserv.py' is a very lightweight server designed to be easy to set up (ie no configuration and only a single file) to test small mapfiles in a known projection (ie you can't request mapfiles in projected coordinate with lon/lat bounds).

It may become more at some point, and patches are welcome, but its not a true WMS server. What I mean by the 'Limitations' is that you should be using the Mapnik OGCServer for anything other than testing small mapfiles ( at this point).

But, I'm glad you've found it useful for just that.

The OGCServer (https://trac.mapnik.org/wiki/OgcServer) is part of the official Mapnik download and should be installed automatically in your python site-packages folder. In your previously emails, it seemed like you were working through getting it set up, right?

You can test that it is installed by doing:

$ python
>>> from mapnik.ogcserver import *

For quick rendering of OSM data you should likely try to render with the OGCServer WMS or use the 'Mapnik' layer as part of TileCache (to bypass the setup of the OGCServer).

That are the approaches I've seen taken in the past.


With that said, its also likely that you can get mapnikserv.py working to, so more comments line...

On Sep 26, 2008, at 1:56 AM, tommaso wrote:

hallo all,

I'trying use the WMS support to render osm data with the script mapnikserv.py (http://mapnik-utils.googlecode.com/svn/trunk/serverside/mapnikserv/ ) and with the mapfile osm.xml (http://wiki.openstreetmap.org/index.php/Mapnik ) but does not work. If I try this script with this mapfile, my browser does nothing, the page does not change.

You mean the image returned does not change (and it blank - based on the background tile color) or the page does not load an image at all?

The apache log seems normal, with no errors.
The same file (mapnikserv.py) works with other little mapfile exemple (with postgis too)

the sample one provided in the mapnikserv folder?

and the osm.xml works too  (I can generate tiles)

In the script I read:
Limitations:
This script offers no support (yet) for reprojections or the development or modification of the mapfile. It is not intended for use in a production environment in order to dynamically generate images. The error handling is targeted at humanizing the learning and debugging of mapnik. It can be used as a non OGC WMS server, but if that is your goal check out the Mapnik WMS server included in the
  mapnik source code.
What does it mean?
Is there a (easy, for people with no programming knowledges) way to use the osm data on a WMS server with mapnik?

Mapnikserv should be able to be used with the OSM XML, but you'll need to request the correct bounding bbox in spherical mercator coordinates.

Try bbox=-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244 for the whole earth.

Also, can you explain how you set up mapnikserv.py and what your full QUERY_STRING looks like that you are testing?

Thanks,

Dane



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

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

Reply via email to