Mapnik WMS using ogcserver component

View: New views
10 Messages — Rating Filter:   Alert me  

Mapnik WMS using ogcserver component

by John Mitchell-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am interested in using Mapnik via WMS and I read in the open street map documentation that Mapnik has a component called ogcserver which is a python based wms server.

I currently have Mapnik_0_6_1 installed and I have been able to successfully generate tile via generate_tiles.py and then view these tiles within an openlayers clients.

What I would like to be able to do next is to allow WMS requests to these generated tiles.

Could someone please point me to documentation for setting up the ogcserver.

Thanks,

John

--
John J. Mitchell

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: Mapnik WMS using ogcserver component

by Ciprian Talaba :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi John,

On Thu, Nov 5, 2009 at 8:51 AM, John Mitchell <mitchelljj98@...> wrote:
Hi,

I am interested in using Mapnik via WMS and I read in the open street map documentation that Mapnik has a component called ogcserver which is a python based wms server.

I currently have Mapnik_0_6_1 installed and I have been able to successfully generate tile via generate_tiles.py and then view these tiles within an openlayers clients.

What I would like to be able to do next is to allow WMS requests to these generated tiles.

Could someone please point me to documentation for setting up the ogcserver.

Thanks,

John

Hope this will help.

--Ciprian

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: Mapnik WMS using ogcserver component

by Frederik Ramm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John,

John Mitchell wrote:
> What I would like to be able to do next is to allow WMS requests to
> these generated tiles.

The ogcserver does not serve WMS based on tiles; it does a live
rendering for each request! - I believe there is some code in the OSM
SVN somewhere that actually serves WMS from pre-computed tiles, but of
course this incurs a loss of quality.

Bye
Frederik

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: Mapnik WMS using ogcserver component

by John Mitchell-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Regarding:
I believe there is some code in the OSM SVN somewhere that actually serves WMS from pre-computed tiles, but of course this incurs a loss of quality.

Why would you incur a loss of quality if your pre-computer tiles were based on rendering from generate_tiles.py?

John

On Thu, Nov 5, 2009 at 6:57 AM, Frederik Ramm <frederik@...> wrote:
John,


John Mitchell wrote:
What I would like to be able to do next is to allow WMS requests to these generated tiles.

The ogcserver does not serve WMS based on tiles; it does a live rendering for each request! - I believe there is some code in the OSM SVN somewhere that actually serves WMS from pre-computed tiles, but of course this incurs a loss of quality.

Bye
Frederik




--
John J. Mitchell

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: Mapnik WMS using ogcserver component

by Rahkonen Jukka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
 
WMS would maintain the quality only if BBOX and WIDTH and HEIGHT parameters of the request happen to suit exactly the dimensions of the prerendered tiles.  Otherwise tiles need to be resampled before generating WMS output.  Loss in quality will be worse if tiles are also re-projected to some other projection.
 
-Jukka Rahkonen-
 


Lähettäjä: mapnik-users-bounces@... [mailto:mapnik-users-bounces@...] Puolesta John Mitchell
Lähetetty: 5. marraskuuta 2009 15:32
Vastaanottaja: Frederik Ramm
Kopio: mapnik-users@...
Aihe: Re: [Mapnik-users] Mapnik WMS using ogcserver component

Regarding:
I believe there is some code in the OSM SVN somewhere that actually serves WMS from pre-computed tiles, but of course this incurs a loss of quality.

Why would you incur a loss of quality if your pre-computer tiles were based on rendering from generate_tiles.py?

John

On Thu, Nov 5, 2009 at 6:57 AM, Frederik Ramm <frederik@...> wrote:
John,


John Mitchell wrote:
What I would like to be able to do next is to allow WMS requests to these generated tiles.

The ogcserver does not serve WMS based on tiles; it does a live rendering for each request! - I believe there is some code in the OSM SVN somewhere that actually serves WMS from pre-computed tiles, but of course this incurs a loss of quality.

Bye
Frederik




--
John J. Mitchell

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: Mapnik WMS using ogcserver component

by John Mitchell-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://code.google.com/p/mapnik-utils/wiki/WmsInstallGuide

From the above link it gives you 4 choices

  • Decide whether to run as wsgi,mod_python,cgi,fastcgi (the server has wrappers for each)
Which one is the fastest in displaying the tiles.

Will these method work on a windows server?

Thanks,

John


On Thu, Nov 5, 2009 at 3:57 AM, Ciprian Talaba <cipriantalaba@...> wrote:
Hi John,

On Thu, Nov 5, 2009 at 8:51 AM, John Mitchell <mitchelljj98@...> wrote:
Hi,

I am interested in using Mapnik via WMS and I read in the open street map documentation that Mapnik has a component called ogcserver which is a python based wms server.

I currently have Mapnik_0_6_1 installed and I have been able to successfully generate tile via generate_tiles.py and then view these tiles within an openlayers clients.

What I would like to be able to do next is to allow WMS requests to these generated tiles.

Could someone please point me to documentation for setting up the ogcserver.

Thanks,

John

Hope this will help.

--Ciprian

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users




--
John J. Mitchell

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Fwd: Mapnik WMS using ogcserver component

by John Mitchell-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I know that I have already asked the below question.

I figured that I would ask one more time in case someone has an opinion

http://code.google.com/p/mapnik-utils/wiki/WmsInstallGuide

From the above link it gives you 4 choices

  • Decide whether to run as wsgi,mod_python,cgi,fastcgi (the server has wrappers for each)
Which one is the fastest in displaying the tiles.

Thanks,

John

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: Fwd: Mapnik WMS using ogcserver component

by Dane Springmeyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John,

Generally I would assume mod_wsgi > mod_python > cgi, but I've not benchmarked.

If it is of interest to you, it would be great to see your comparisons. 

Keep in mind if you are rendering data on the fly (rather than serving cached tiles) speed differences between server implementations may not be noticeable.

However, given the large size of the OSM stylesheet, which you are presumably using, a server implementation that loads the map xml once will be significantly faster than loading the xml each request, so cgi will be the slowest. 


Dane

On Nov 8, 2009, at 2:23 PM, John Mitchell wrote:

Hi,

I know that I have already asked the below question.

I figured that I would ask one more time in case someone has an opinion

http://code.google.com/p/mapnik-utils/wiki/WmsInstallGuide

From the above link it gives you 4 choices

  • Decide whether to run as wsgi,mod_python,cgi,fastcgi (the server has wrappers for each)
Which one is the fastest in displaying the tiles.

Thanks,

John
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users


_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: Fwd: Mapnik WMS using ogcserver component

by John Mitchell-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So then including fastcgi with the order being fastest first and slowest last would be:

mod_wsgi > mod_python > fastcgi > cgi

Correct?

Just to prototype something quickly I have used wsgi as a standalone server but that is not mod_wsgi which goes through Apache.

The mapnik documentation lists how to configure: wsgi,mod_python,cgi,fastcgi but not mod_wsgi.

I don't know anything regarding mod_wsgi but I found the following information:

mod_wsgi is an Apache module which allows Apache to serve
WSGI-compliant applications. You can see it as an alternative to FCGI or
CGI.

How would I configure mod_wsgi?

Thanks,

John




John

On Sun, Nov 8, 2009 at 8:48 PM, Dane Springmeyer <blake@...> wrote:
John,

Generally I would assume mod_wsgi > mod_python > cgi, but I've not benchmarked.

If it is of interest to you, it would be great to see your comparisons. 

Keep in mind if you are rendering data on the fly (rather than serving cached tiles) speed differences between server implementations may not be noticeable.

However, given the large size of the OSM stylesheet, which you are presumably using, a server implementation that loads the map xml once will be significantly faster than loading the xml each request, so cgi will be the slowest. 


Dane

On Nov 8, 2009, at 2:23 PM, John Mitchell wrote:

Hi,

I know that I have already asked the below question.

I figured that I would ask one more time in case someone has an opinion

http://code.google.com/p/mapnik-utils/wiki/WmsInstallGuide

From the above link it gives you 4 choices

  • Decide whether to run as wsgi,mod_python,cgi,fastcgi (the server has wrappers for each)
Which one is the fastest in displaying the tiles.

Thanks,

John
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users




--
John J. Mitchell

_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users

Re: Fwd: Mapnik WMS using ogcserver component

by Dane Springmeyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Nov 9, 2009, at 2:14 AM, John Mitchell wrote:

> How would I configure mod_wsgi?


http://www.google.com/search?rls=en&q=configure+mod_wsgi

Short version is you just:

1) install mod_wsgi
2) point mod_wsgi at your mapnik wsgi script (which I think you called  
'wmsWSGI.py')
  - mod_wsgi looks for is the variable named 'application' in that  
script
3) restart apache

To 'point' mod_wsgi you need to put a few configuration parameters in  
your apache conf like:

     WSGIScriptAlias /<url> /path/to/the/wsgi_app.py
     WSGIDaemonProcess <process name> user=<user> group=<group>  
processes=10 threads=1
     WSGIProcessGroup <process name>

Dane
_______________________________________________
Mapnik-users mailing list
Mapnik-users@...
https://lists.berlios.de/mailman/listinfo/mapnik-users