Combined rendering of PostGIS data and geotiff

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Combined rendering of PostGIS data and geotiff

Quirin Hamp

Hello,

 

We are using uDig 1.1.0 which seems like to become old after the release of uDig3D. Congratulations to the whole dev team by the way.

I face an issue that I do not understand. I am inserting a geotiff and some georeferenced Postgis tables in udig and it works fine for the uDig client, but for my customized applications it does not. It throws an error (see below). Any change in zoom or position as suggested does not ameliorate the situation.

What do I need to change or add in my code to avoid this error?

Thank you for your help in advance.

 

 

Yours sincerely,

 

Quirin HAMP

 

net.refractions.udig.project.render.RenderException: Beim Zeichnen trat ein Fehler auf. Vermutlich ist dies ein Fehler bei der Umprojezierung. Versuchen Sie, näher heranzuzoomen oder einen anderen Kartenausschnitt zu wählen.

                at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.doRender(BasicGridCoverageRenderer.java:74)

                at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(BasicGridCoverageRenderer.java:53)

                at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(BasicGridCoverageRenderer.java:117)

                at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(RenderJob.java:103)

                at net.refractions.udig.project.internal.render.impl.RenderJob.run(RenderJob.java:203)

                at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Caused by: java.lang.NoClassDefFoundError: javax/media/jai/JAI

                at net.refractions.udig.render.gridcoverage.basic.GridCoverageRendererUtils.paintGraphic(GridCoverageRendererUtils.java:97)

                at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.doRender(BasicGridCoverageRenderer.java:72)

                ... 5 more

Caused by: java.lang.ClassNotFoundException: javax.media.jai.JAI

                at java.lang.ClassLoader.findClass(Unknown Source)

                at java.lang.ClassLoader.loadClass(Unknown Source)

                at java.lang.ClassLoader.loadClass(Unknown Source)

                at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429)

                at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)

                at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)

                at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)

                at java.lang.ClassLoader.loadClass(Unknown Source)

                at java.lang.ClassLoader.loadClassInternal(Unknown Source)

                ... 7 more

 

 

 

_________________________________

Albert-Ludwigs-Universität Freiburg

Department of Microsystems Engineering

Georges-Köhler-Allee 103

79110 Freiburg - Germany

Tel: +49761/203-7158        

Fax: +49761/203-7222

e-mail: quirin.hamp at imtek.uni-freiburg.de

Internet: http://www.imtek.uni-freiburg.de/emp

 


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
Reply | Threaded
Open this post in threaded view
|

Re: Combined rendering of PostGIS data and geotiff

Jody Garnett-2
<base href="x-msg://211/">

Hello,


Morning.

We are using uDig 1.1.0 which seems like to become old after the release of uDig3D. Congratulations to the whole dev team by the way.

A bit of both; uDig core is focused on uDig 1.2. The uDig3D looks to be an exciting visualisation option; we will continue to support (and encourage!) different visualisation options.

So I encourage you to upgrade to uDig 1.2.x when you get a chance.

I face an issue that I do not understand. I am inserting a geotiff and some georeferenced Postgis tables in udig and it works fine for the uDig client, but for my customized applications it does not.

Interesting.

It throws an error (see below). Any change in zoom or position as suggested does not ameliorate the situation. What do I need to change or add in my code to avoid this error?
Thank you for your help in advance.

Ah; you need to ensure that when you run your custom application you include a JRE that has JAI and ImageIO installed. The custom app tutorial covers this as one of the bonus questions ... basically download the same JRE documented in the quickstart and drop it next to your custom app.


Jody

Yours sincerely,
 
Quirin HAMP
 
net.refractions.udig.project.render.RenderException: Beim Zeichnen trat ein Fehler auf. Vermutlich ist dies ein Fehler bei der Umprojezierung. Versuchen Sie, näher heranzuzoomen oder einen anderen Kartenausschnitt zu wählen.
                at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.doRender(BasicGridCoverageRenderer.java:74)
                at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(BasicGridCoverageRenderer.java:53)
                at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(BasicGridCoverageRenderer.java:117)
                at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(RenderJob.java:103)
                at net.refractions.udig.project.internal.render.impl.RenderJob.run(RenderJob.java:203)
                at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.NoClassDefFoundError: javax/media/jai/JAI
                at net.refractions.udig.render.gridcoverage.basic.GridCoverageRendererUtils.paintGraphic(GridCoverageRendererUtils.java:97)
                at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.doRender(BasicGridCoverageRenderer.java:72)
                ... 5 more
Caused by: java.lang.ClassNotFoundException: javax.media.jai.JAI
                at java.lang.ClassLoader.findClass(Unknown Source)
                at java.lang.ClassLoader.loadClass(Unknown Source)
                at java.lang.ClassLoader.loadClass(Unknown Source)
                at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429)
                at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
                at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
                at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
                at java.lang.ClassLoader.loadClass(Unknown Source)
                at java.lang.ClassLoader.loadClassInternal(Unknown Source)
                ... 7 more
 
 
 
_________________________________
Albert-Ludwigs-Universität Freiburg
Department of Microsystems Engineering
Georges-Köhler-Allee 103
79110 Freiburg - Germany
Tel: +49761/203-7158        
Fax: +49761/203-7222
e-mail: quirin.hamp at imtek.uni-freiburg.de
 
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel