Skip to main content

I'm using the PDFPageFormatter to make a PDF with
different elements - including a map from a WMS-service.


It's easy to use the transformer, but the map gets very blurry. Why, I
don't know, so I hope that someone can help me.

Could you show us a screenshot of your workspace? More information would be helpful to see what your problem is.

 

 

The spatial extent of the WMS you are using might be different from the width and height of the object in the PDFPageFormatter?

Are you using the WMS reader? If your map gets blurry, you can increase the width & height of your wms request:

If you are using an HttpCaller you can set the width & height in your request. e.g.:

http://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart-grijs/wms?REQUEST=GetMap&SERVICE;=WMS&VERSION;=1.3.0&LAYERS;=GRB_BSK_GRIJS&STYLES;=&FORMAT;=image/png&BGCOLOR;=0xFFFFFF&T;%20RANSPARENT=TRUE&CRS;=EPSG:31370&BBOX;=@Value(_wms_xmin),@Value(_wms_ymin),@Value(_wms_xmax),@Value(_wms_ymax)&WIDTH;=@Value(_wms_width)&HEIGHT;=@Value(_wms_height)


Could you show us a screenshot of your workspace? More information would be helpful to see what your problem is.

 

 

The spatial extent of the WMS you are using might be different from the width and height of the object in the PDFPageFormatter?
udklip.jpg

 

Of course. Hope this gives the needed information.

 


Are you using the WMS reader? If your map gets blurry, you can increase the width & height of your wms request:

If you are using an HttpCaller you can set the width & height in your request. e.g.:

http://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart-grijs/wms?REQUEST=GetMap&SERVICE;=WMS&VERSION;=1.3.0&LAYERS;=GRB_BSK_GRIJS&STYLES;=&FORMAT;=image/png&BGCOLOR;=0xFFFFFF&T;%20RANSPARENT=TRUE&CRS;=EPSG:31370&BBOX;=@Value(_wms_xmin),@Value(_wms_ymin),@Value(_wms_xmax),@Value(_wms_ymax)&WIDTH;=@Value(_wms_width)&HEIGHT;=@Value(_wms_height)

@ikast_mofri, I saw your workspace.Try to set values for height & width and this should solve your problem.

 

Let me known

 

 

 


I tried earlier to set values for height and width, which didn't help. But I've tried again, this time with bigger values and now I get the result, that I want.

Thank you


Are you using the WMS reader? If your map gets blurry, you can increase the width & height of your wms request:

If you are using an HttpCaller you can set the width & height in your request. e.g.:

http://geoservices.informatievlaanderen.be/raadpleegdiensten/GRB-basiskaart-grijs/wms?REQUEST=GetMap&SERVICE;=WMS&VERSION;=1.3.0&LAYERS;=GRB_BSK_GRIJS&STYLES;=&FORMAT;=image/png&BGCOLOR;=0xFFFFFF&T;%20RANSPARENT=TRUE&CRS;=EPSG:31370&BBOX;=@Value(_wms_xmin),@Value(_wms_ymin),@Value(_wms_xmax),@Value(_wms_ymax)&WIDTH;=@Value(_wms_width)&HEIGHT;=@Value(_wms_height)

I would also recommend this approach of setting the WMS source width and height. I noticed that by default the image that was returned is about 500 x 500. I would suggest requesting something more like 1000 x 1000 to get 4x the resolution. You may also get better results with image/png rather than image/jpeg which is more lossy.

Reply