[udig-devel] Export Problem...again!!!
Jesse Eichar
jeichar at refractions.net
Tue Feb 20 10:38:33 PST 2007
Quickly looked at the code. Grab the nightly and see if that fixes
the problem. I made a fix a couple days ago that should make the
export use the layer's CRS.
Jesse
On 20-Feb-07, at 10:31 AM, Jesse Eichar wrote:
> 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 at dap.es
>>
>> _______________________________________________
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/udig-devel/attachments/20070220/27b085c3/attachment.html
More information about the udig-devel
mailing list