This sort of question is best asked on the users' list (cc'd) rather than
the developers' list as it doesn't relate to the development of GeoServer.

Ian

On 6 December 2017 at 15:12, jcb81 <[email protected]> wrote:

> Hello everyone,
>
> I searched for many hours for my issue, I hope I'll get some answers here.
>
> The context : I installed Geoserver (2.11.1) and configured some layers
> coming from stores "Oracle NG" and "WMS". I also installed the print module
> "Mapfish" to be able to send print request from a web application to
> generate map reports.
>
> After many searches, I can now configure well the "config.yaml" file to
> configure the print layouts, and I understand how works the GET and POST
> http print requests and parameters.
>
> Here is my issue : the print request work well with layers coming from
> "Oracle NG" store, but not the ones from the "WMS" store. When I download
> the generated PDF, I get my report with a blank map and an exception
> message
> in a little yellow box near the map area : "java.io.IOException: The byte
> array is not a recognized imageformat."
>
> <http://osgeo-org.1560.x6.nabble.com/file/t370398/
> mapfish_print_error_1.png>
> <http://osgeo-org.1560.x6.nabble.com/file/t370398/
> mapfish_print_error_2.png>
>
> Here is a working request :
> http://localhost:9100/geoserver/pdf/print.pdf?spec={
> outputFilename:'print-${yyyyMMddHHmmss}',layout:'MY_
> MAP_LAYOUT',pages:[{center:[88861.938477485,100786.976035025],scale:10000,
> rotation:0}],dpi:75,units:'m',srs:'EPSG:2169',layers:[{baseURL:'
> http://localhost:9100/geoserver/wms',type:'WMS'
> ,layers:['WS:ORACLE_LAYER'],format:'image/png'}]}
>
> Here is a NOT working request :
> http://localhost:9100/geoserver/pdf/print.pdf?spec={
> outputFilename:'print-${yyyyMMddHHmmss}',layout:'MY_
> MAP_LAYOUT',pages:[{center:[88861.938477485,100786.976035025],scale:10000,
> rotation:0}],dpi:75,units:'m',srs:'EPSG:2169',layers:[{baseURL:'
> http://localhost:9100/geoserver/wms',type:'WMS',layers:['WS:WMS_LAYER'],
> format:'image/png'}]}
>
> Only the layer asked changes in the parameters.
>
> The only thing I found for now is about authentification issue on WMS
> layers, but my WMS layers don't have any authentification, they can be
> reached as it.
>
> Is anyone here already had this issue ? Or have an explanation on what I'm
> doing wrong ?
> Any help will be really appreciated !
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-Dev-f3819232.html
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Geoserver-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>



-- 
Ian Turton
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to