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.
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?
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)
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)