Thanks Ede,
I was missing filling Map options.
Now it works!
Peppe
2017-11-24 13:32 GMT+01:00 :
> Peppe,
>
> try to fetch the layerloader from the Registry like OpenFileWizard does.
>
> Registry registry = workbenchContext.getRegistry();
> List loaders =
Peppe,
try to fetch the layerloader from the Registry like OpenFileWizard does.
Registry registry = workbenchContext.getRegistry();
List loaders = registry.getEntries(FileLayerLoader.KEY);
FileLayerLoader loader = null;
for (FileLayerLoader fileLayerLoader : loaders) {
if
Hi Ede,
thanks for the suggestion.
I can see the method ReferencedImageFactoryFileLayerLoader.open(..) is a
boolen
How can I use it?
< I tried:
String inputFile ="D:/test.tif";
String category= StandardCategoryNames.WORKING
URI uri = inputFile .toURI();
Peppe,
you should probably use
com.vividsolutions.jump.workbench.imagery.ReferencedImageFactoryFileLayerLoader.open(...)
as it is done in
org.openjump.core.ui.plugin.file.open.OpenFileWizard.run(...) L#156ff
you can give a target layername via the options map.
..ede
On 24.11.2017 11:16,
Greetings
I am able to programmatically load a tif image as RasterImageLayer via
plugin,
Two years ago I added a class
(org.openjump.core.rasterimage.RasterImageIOUtils)
To make the process easier. For instance, related to my question, the
method:
RasterImageIOUtils.loadTIF(File file,