[OpenLayers-Users] Print to PDF via GeoServer - Example?

Chris Holmes cholmes at openplans.org
Mon Jun 18 08:29:59 EDT 2007



Christopher Schmidt wrote:
> On Mon, Jun 18, 2007 at 09:18:12AM +0000, Benoit PESTY wrote:
>> Hello,
>>
>> I'm needing this functionnality too (except I plan to use Mapserver and 
>> BIRT).
>>
>> Extending on Christopher's code I've done the function below.
>>
>> My problem now is that I'd like to render the vector layers too but I don't 
>> really know how to do that.
> 
> Save the vectors to the server first, and then just treat them like any
> other layer.

The other thing you could do, if for some reason you really don't want 
to save the vectors to the server, is to use inline features in your 
SLD.  See: http://docs.codehaus.org/display/GEOSDOC/InlineFeature

You'd have the vector layer write itself as GML, and then include that 
in a GetMap POST request, and GeoServer will render it for you.  The 
problem is that I don't think OpenLayers supports the WMS GetMap POST, 
so you'd have to code that.  So the easier route is to save the vector 
layers to the server.

Chris

> 
> Regards,

-- 
Chris Holmes
The Open Planning Project
http://topp.openplans.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cholmes.vcf
Type: text/x-vcard
Size: 282 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070618/8aa28594/cholmes.vcf


More information about the Users mailing list