Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] Problems in rendering images in RC9

Hi, I have trouble to display an image (which is rendered from a URL) in uDig 1.1.9RC. The same code works fine in uDig 1.1.4RC, but when I target my app to RC9, the image doesn't display anymore. This is the conflicting code:

			ImageServiceExtension ise = new ImageServiceExtension();
			IService service = ise.createService(url, null, env);
			List<IService> list = new ArrayList<IService>();
			list.add(service);

			List<? extends IGeoResource> resources = service.members(null);

			resource = (IGeoResource) resources.get(0);

			LayerFactory factory = map.getLayerFactory();
			if (factory == null) {
				factory = ProjectFactory.eINSTANCE.createLayerFactory();
			}

			List<Layer> layers = new ArrayList<Layer>();

			Layer layer = null;
			try {
				layer = factory.createLayer(resource);
			} catch (Exception e) {
				throw new IOException(e.getMessage() + e.getCause());
			}

Is there any change in any of these classes that I'm using?

Thanks in advance, Diego

 


Back to the top