2 solution. However the catalog provides the acquire method that will do all the
work for you.
IService service =
URL("file://"+path <file://"+path> ), new NullProgressMonitor());
Simply call this from your menu contribution and provide the path to
One thing to note is that the acquire method douse not guarantee that a geotiff service will be used to render your layer. If it I important
that your layer use a geotiff render you will have to use the manual
service creation method.
the class ICatalog doesnt' have the method acquire. I tried with:
ICatalog icatalog =CatalogPlugin.getDefault().getLocalCatalog(); icatalog.find(url, new NullProgressMonitor());
but nothing append....I don't see the geotiff image inside the 2d map....
From: [hidden email]
[mailto:[hidden email]] On Behalf Of Alberto
Sent: Wednesday, 22 June 2011 5:52 PM
To: ML udig-users; User-friendly Desktop Internet GIS
Subject: [udig-devel] add GeoTifff Image
I wuold like to add a geoTiff image on a 2D map simply pressing
The functionality is the same as "right click on a map" -> "add
files" -> "and select a GeoTiff image"
but I don't know which classes I should use and in which way.