This page last changed on Sep 27, 2006 by bowens.

Overview

An GetMapFactoryProducerSpi is a factory, originally thought for the java SPI subsystem, that can be queried for support on the generation of a specific map format, and in order to get an hold on a GetMapProducer, the actual class in charge or rendering a WMS request on a specific file format.

The WMS getMap operation queries the Spring context to find out implementations GetMapProducerSpi, and then queries them for support on the requested map format. If it finds one that supports the requested format, gathers the GetMapProducer from it and delegates to it the map generation.

Extension

Extending the WMS getMap system boils down to providing a class that implements the GetMapFactoryProducerSpi and another that implements GetMapProducer and does the actual rendering work.

If you plan to add a raster format, you may want to have a look the the gif map producer (and its superclass RasterMapProducer), whilst if working on a vector format you may want to have a look at the PDF producer:

Then, each added produrer must be registered in the applicationContext.xml file for your module. Here are example declarations for GIF and PDF producers:

<bean id="GIFMapProducerFactory" 
   class="org.vfny.geoserver.wms.responses.map.GifMapProducerFactory">
</bean>

<bean id="PDFMapProducerFactory" 
   class="org.vfny.geoserver.wms.responses.map.pdf.PDFMapProducerFactory">
</bean>

ProducerLookup.png (image/png)
ProducerLookup.png (image/png)
ProducerLookup.png (image/png)
ProducerLookup.txt (text/plain)
Document generated by Confluence on Jan 16, 2008 23:26