2

I am using OpenGeo Suite 3.0.2. I created an app using Client SDK and stored the raster and vector data on postgreSQL/PostGIS.

The print tool is not working, giving error the following error:

Java.io.IOException: the byte array is not recognized imageformat.

These are the dependencies, I included:

  • @require plugins/Print.js
  • @require GeoExt.ux/PrintPreview.js
  • @require GeoExt/widgets/PrintMapPanel.js
  • @require GeoExt/plugins/PrintProviderField.js
  • @require GeoExt/plugins/PrintPageField.js
  • @require OpenLayers/Control/ScaleLine.js

This is the code I included for print service:

{
   ptype: "gxp_print",
   customParams: {outputFilename: 'DAA Map-PDF'},
   printService: "/geoserver/pdf/",
   actionTarget: "map.tbar",
   showButtonText: true
}
8
  • 1
    Can you show the part of your code that it's failing? Commented Jun 4, 2013 at 14:31
  • please add a fuller description of your set up
    – Ian Turton
    Commented Jun 4, 2013 at 14:48
  • I am not able to post here so I edited the Question Commented Jun 4, 2013 at 16:23
  • It looks like the error is occurring in GeoServer. Could you check the layer in the GeoServer layer preview? Take a look in the GeoServer logs for a more complete error message and supporting information (INFO and WARN messages preceding the error)
    – smithkm
    Commented Jun 4, 2013 at 18:24
  • Also, how exactly did you load the data into PostGIS and how do you set up the layer in GeoServer?
    – smithkm
    Commented Jun 4, 2013 at 18:27

1 Answer 1

1

You must resolve the dependencies, so, you need to activate the printing module in geoserver. Please, follow the steps in http://docs.geoserver.org/stable/en/user/community/printing/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.