[udig-devel] Udig 1.1RC14 and trunk: Geotiff

Mauro Bartolomeoli m.bartolomeoli at esalab.it
Fri Apr 18 06:43:42 PDT 2008


I found one possible solution to the problem of Geotiffs not reloading 
when restarting Udig: the problem was that Udig was not saving the tiff 
in the .localCatalog file, due to an empty Map returned from the 
getConnectionParams method in GeoTiffServiceImpl. I added the following 
method:

public Map<String, Serializable> getConnectionParams() {       
        URL url=getIdentifier();
       
        Map<String, Serializable> params = new HashMap<String, 
Serializable>();
        if (url != null) {
            params.put(GeoTiffServiceExtension.URL_PARAM, url);
        }
        return params;       
    }

and now the geotiffs are saved when Udig quits.



Mauro Bartolomeoli wrote:
> Here it is (the path to the file is correct):
>
> !SESSION 2008-04-08 08:55:40.481 
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_02
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments:  -os win32 -ws win32 -arch x86 -data 
> C:\Documents and Settings\m.bartolomeoli\uDig
>
> !ENTRY net.refractions.udig.ui 1 0 2008-04-08 08:55:47.312
> !MESSAGE net.refractions.udig.ui.WorkbenchConfiguration 
> "net.refractions.udig.internal.ui.UDIGWorkbenchConfiguration" 
> specified but no valid extension found.
> Please check that the extension exists and that it is valid.
>
> !ENTRY net.refractions.udig.ui 1 0 2008-04-08 08:55:47.531
> !MESSAGE net.refractions.udig.ui.MenuBuilder 
> "net.refractions.udig.ui.uDigMenuBuilder" specified but no valid 
> extension found.
> Please check that the extension exists and that it is valid.
>
> !ENTRY net.refractions.udig.ui 1 0 2008-04-08 08:55:48.532
> !MESSAGE PropertyParser: Parsing PropertyValue, desired Propert: 
> hasSelection not found.  Referenced in plugin: 
> net.refractions.udig.project.ui
>
> !ENTRY net.refractions.udig.project 1 0 2008-04-08 08:56:01.038
> !MESSAGE Layer: orto_low could not find a GeoResource with 
> id:file:/C:/shapes/borgopace_low_ortofoto.tiff#/C:/shapes/borgopace_low_ortofoto.tiff 
>
>
>
> Jody Garnett wrote:
>> That is great; a problem we can actually fix :-) Is there any 
>> information in the log? Sounds like the URL to the geotiff is getting 
>> harmed...
>> Jody
>>> I found a problem with Geotiffs. The first time I add one to a map, 
>>> it renders correctly. If I close udig and restart it, it always 
>>> gives me an error on geotiff layers: "There was no renderer found 
>>> capable of rendering this layer". I have to remove and add those 
>>> layers again to correcly render them.
>>> Is this a known problem?
>>>
>>> Thanks,
>>> Mauro Bartolomeoli
>>>
>>> _______________________________________________
>>> 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
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel


More information about the udig-devel mailing list