Re: [Geotools-gt2-users] Problem with printing WMS.

2015-01-22 Thread mroguski
The code is below. Take a look maybe you will find it useful. Beside the major change in functionality I made several minor changes (like making some fields private or using different logger class) to adapt it to my app. So you can simply ignore those. The major changes are in class *WMSCoverageR

Re: [Geotools-gt2-users] Problem with printing WMS.

2015-01-21 Thread Jody Garnett
GeoServer has a DPI setting that can used in GetMap (used to scale the size of points and fonts when rendering). Glad you got it to work, and yes we would happily accept a patch. Perhaps we can provide a parameter for WMSCoverageReader that captures the max request size...

Re: [Geotools-gt2-users] Problem with printing WMS.

2015-01-21 Thread mroguski
OK I solved the problem. I altered the WMSCoverageReader class so that it sends severalt requests to WMS server if necessary and joins the result into a single image. If you are interested I can post the code here. The only problem which remains is the printing of point features. The larger the

Re: [Geotools-gt2-users] Problem with printing WMS.

2015-01-19 Thread Jody Garnett
There is an image mosaic plugin that can take several raster files and form them into a seamless data structure. -- Jody Garnett On 19 January 2015 at 04:06, mroguski wrote: > Thanks, I will take a look at it. > > But still I think that the loginc in the WMSCoverageRenderer should be > changed.

Re: [Geotools-gt2-users] Problem with printing WMS.

2015-01-19 Thread mroguski
Thanks, I will take a look at it. But still I think that the loginc in the WMSCoverageRenderer should be changed. I could of course render wms layers separately, divide the render area in a way that the maximum size of the request is never violated, but this would disrupt the rendering order of t

Re: [Geotools-gt2-users] Problem with printing WMS.

2015-01-17 Thread Jody Garnett
For uDig (which wraps some more logic around the same geotools renderer you are using) it makes the WMS request by hand - taking into account the max size allowed by the server. -- Jody Garnett On 15 January 2015 at 22:49, mroguski wrote: > Hi Jody, > > thanks for your answer. > > Unfortunately

Re: [Geotools-gt2-users] Problem with printing WMS.

2015-01-15 Thread mroguski
Hi Jody, thanks for your answer. Unfortunately checking if geoserver can return a pdf will not help, because the WMS service is hosted by Arcgsi Server in this case. I will check if the same happens with geoserver and let you know. Another thing is that reading PDF will not help because after th

Re: [Geotools-gt2-users] Problem with printing WMS.

2015-01-15 Thread Jody Garnett
You may check if the WPS (like GeoServer) has an option to return you a PDF directly? Other than that working with pixels is a pain when printing - it would be great if we could read and render one of the vector formats like kml. The java printing callback system is hooked pretty deeply into the p

[Geotools-gt2-users] Problem with printing WMS.

2015-01-15 Thread mroguski
Hello, recently I came accross a problem with printing WMS layer. The printing is fine when the size of the result image is not too large. When larger - it crashes. I use Geotools 12.1. But let me explain more in details: Here is a piece of code that prepares the WmsLayer that will be passed to