From: UMN MapServer Users List [mailto:[EMAIL PROTECTED] On Behalf Of Michael S. Birkmose
Sent: Wednesday, April 12, 2006 9:26 AM
To: [email protected]
Subject: [UMN_MAPSERVER-USERS] Dynamic layers

 

Hi,

 

I’m investigating the possibility of using Mapserver to generate a WMS server.

 

However my needs are a bit special. I need to offer some layers which are dynamically generated by my own C++ application.

 

I was wondering if there was any possibility in mapserver to interface to my C++ application? Its not a possibility for me to generate a large tiff or something similar. I need to pass each WMS request for the specific layer to the C++ application. The output is always a raster.

 

Best regards,

Michael

 

Micheal,

 

I think the simplest way would be to use a proxy, if I was doing this in Java I would have a servlet listening to incoming requests and then forwarding these requests depending on layer name to the appropriate server (your c++ app,  or MapServer respectively).

 

If you want to test this quickly, mod_python (http://www.modpython.org) and Apache will let you create a proxy very quickly, and with the added bonus that you can use Python and GDAL to do any merging of layers from the c++ app, and MapServer if required.

 

There is probably a neat way to do this with the internals of MapServer, but if I were in a rush I would use a proxy.

 

Norman

 

 

 

Reply via email to