Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Export Problem...again!!!

Hi Javier,


There are still a number of bugs with the export.  I've just fixed a couple more and I still see a few in my future.

With regards to this bug...  It does not use the layer's CRS unfortunately so that is a fair bug that I need to address.  However you can fix the problem by adding a .prj to the shapefile that has the projection in it.  

Out of curiosity, how are you creating the new layer?

Jesse

On 20-Feb-07, at 10:03 AM, Javier Cámara wrote:

Hi, udiggers!!!

we are experimenting new exciting export problem...

Consider follow steps:

1) I create new layer from an existing one (ShpGeoResource)

2) Last step on the previous step was:
            newLayer.setCRS(srcLayer.getCRS());

3) We want to export new layer, then right click and "Export ..."

4) Select Export Layer

5) Obtain this pretty exception:
!ENTRY org.eclipse.jface 4 2 2007-02-20 18:48: 04.265
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
    at net.refractions.udig.catalog.ui.export.ExportResourceSelectionPage$ExportResourceLabelProvider.getColumnText (ExportResourceSelectionPage.java:348)
    at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:309)
    at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java :95)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:843)
    at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
[...]

We are debugging and discovering that problem appear with getCRS().

Are we setting CRS in wrong way? Why crs attribute is null if we try:
newLayer.getResolve(IGeoResource.class,null).getInfo(null).getCRS()   ???

Is it another export bug? or... am I 'the bug'?

Thanks!!!

Un saludo

--
Javier Cámara
Subdirección de Integración de Sistemas
E.P. Desarrollo Agrario y Pesquero
c/Bergantín, 39 - 41012 Sevilla.  España
jcamara@xxxxxx

_______________________________________________
User-friendly Desktop Internet GIS (uDig)


Back to the top