Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [udig-devel] Adding a image layer

Hello,
I have been looking for it,
I think I should use SetLayerVisibilityCommand class, so I started to search for the correct command factory but no specific method to create a SetLayerVsibilityCommand class...

I have been searching in the udig api, package: net.refractions.udig.project.command

In this package I haven't found the class, so I started to search the AbstractCommand and UndoableMapCommand, since SetLayerVisibilityCommand extend/implement those classes, but no clue of the class I am searching for.

Any tip?
Sorry for being annoying asking all time...
Thank you in advance.


-----Original Message-----
From: udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx [mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jody Garnett
Sent: miércoles, 20 de mayo de 2009 12:29
To: User-friendly Desktop Internet GIS
Subject: Re: [udig-devel] Adding a image layer

> Hello again,
> Yes, I am with Java ImageIO and JAI installed.
> I have tried to load in UDIG the .shp file for a tiled map (as index) and I didn't get nothing shown on map view, only a grid...

Try starting from a working example;
http://svn.osgeo.org/geotools/trunk/modules/plugin/imagemosaic/src/test/resources/org/geotools/gce/imagemosaic/test-data/rgb/

And then modify it based on what you learned.

> No jpg got loaded except one with bad resolution, and I finally stop trying...

> Also I have an important question to ask, how can I hide or show a Layer programmatically?
> I did:
> List<ILayer> layers = map.getMapLayers();
> But what should I do with each layer in order to hide or show them?
> I realized that there is a method isVisible() but I need to change the visibility.

THe ILayer interface is the read-only interface; in order to modify
something in a safe way you need to issue a command. When your command
is executed you have access to the internal read-write Layer
interfaces on which you can call setVisible.

Please review the developers guide section on commands for details.

> I will keep searching for it.
> Thank you in advance.
> Mario.
>
> -----Original Message-----
> From: udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx [mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jody Garnett
> Sent: miércoles, 13 de mayo de 2009 16:05
> To: User-friendly Desktop Internet GIS
> Subject: Re: [udig-devel] Adding a image layer
>
> Hi Mario:
>
> What platform are you on; can you confirm you have Java ImageIO and
> JAI installed?  Your friend is giving you good advice for the web but
> bad advice for geospatial data.
>
> If you want something actually good try ECW or JPEG2000. JPEG images
> are good for photos and so on; but not good for this kind of map work;
> the compression depends a lot on tricks of the eye (bluring continuous
> backgrounds and so on) which are effective when you look at the entire
> image etc... because it makes use of entire image compression tricks
> you need to load the entire image in memory ... which is not something
> that is good when you get up to 40 gig rasters.
>
> I would also ask you to try trunk where the raster support is
> improved; but right now there is not much we can do for you. If you
> want to try writing a couple of basic java programs to work with your
> image perhaps we can learn where udig is having problems - but right
> now we are using the jpeg support that comes with the java you are
> using.
>
> You can use gdal command line tools to convert your jpeg to another
> format. Cheers.
>
> Jody
>
> 2009/5/13 Mario Nuñez Jimenez <mario.nunez@xxxxxxxxxxxxxxx>:
>> Hello,
>> I have already increased the amount of memory used by my rcp so I have finally get the map loaded but it does not work properly. On startup it is not rendered. When I do any zoom it seems to work almost every time but if I go all the zoom out it does not get rendered.
>>
>> A partner of mine has been open the jpg image with various gis editors and he told me that the image has no problems. Anyway udig cannot open it...
>>
>> I will give it a try about the different memory configurations. I will report it later.
>>
>> About a geotiff, my partners told me that it is too heavy, much more than a jpg so I discarded that possibility but If you think it has possibilities of being success I can give it a try. The only thing about geotiff is that I don't know how to get this file format from my jpg... any recommendation?
>>
>> About tied map... I think it could work, I will try It.
>> Thank you so much!
>>
>>
>>
>> -----Original Message-----
>> From: udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx [mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jody Garnett
>> Sent: miércoles, 13 de mayo de 2009 3:09
>> To: User-friendly Desktop Internet GIS
>> Subject: Re: [udig-devel] Adding a image layer
>>
>> Can you try starting the application with more and/or less memory and
>> see if that has an effect? The failure looked like it was having
>> trouble with the encoding of your jpeg image; it did not say anything
>> about memory - but size of file seems to be the difference between
>> working and not right?
>>
>> jpeg images need to be loaded into memory because of the way the
>> encoding is done; other file formats can kind of be left on disk a
>> little more (a geotiff for example is structured so we can read the
>> header and then know which parts of the file to read).
>>
>> You can define a tiled map with udig; as an image moasic; it uses a
>> shapefile to say where all the tiles are positioned. The shapefile
>> also indicates which file goes where.
>> - http://docs.codehaus.org/display/GEOTDOC/Image+Mosaic+Plugin
>>
>> Jody
>>
>> 2009/5/12 Mario Nuñez Jimenez <mario.nunez@xxxxxxxxxxxxxxx>:
>>> One question...
>>> It is possible to load a tiled map programmatically with udig?
>>>
>>> -----Original Message-----
>>> From: udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx [mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jody Garnett
>>> Sent: martes, 12 de mayo de 2009 1:36
>>> To: User-friendly Desktop Internet GIS
>>> Subject: Re: [udig-devel] Adding a image layer
>>>
>>> The additional lines helped: javax.imageio.IIOException: Decoder
>>> cannot decode input.
>>>
>>>  com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReader.getInfoImage(CLibJPEGImageReader.java:216)
>>>
>>> Really looks like like your jpeg could not be decoded.
>>> Jody
>>>
>>> 2009/5/11 Mario Nuñez Jimenez <mario.nunez@xxxxxxxxxxxxxxx>:
>>>> Hello ,
>>>> I think I send the email two times, sorry, I forgot that I sent it.
>>>>
>>>> But no, it is not resolved. I have loaded jpg-jgw map but not the one that I need. The one that I need doesn't get loaded and UDIG throws an exception.
>>>>
>>>> I think that the jgw is ok, it is a simple text file, and I think it is not the problem. About the jpg itself I think it is ok too because I can open it with any image visualization program.
>>>>
>>>> Those lines that I sent are the ones that Udig throws when I try to load the layer as udig user from the jpg-jgw (27mb of size) But I realized that I have miss more exceptions lines:
>>>>
>>>> !ENTRY net.refractions.udig.catalog.rasterings 4 0 2009-05-11 15:07:24.181
>>>> !MESSAGE error reading coverage
>>>> !STACK 0
>>>> javax.imageio.IIOException: Decoder cannot decode input.
>>>>  at com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReader.getInfoImage(CLibJPEGImageReader.java:216)
>>>>  at com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReader.getImageTypes(CLibJPEGImageReader.java:274)
>>>>  at javax.imageio.ImageReader.getRawImageType(Unknown Source)
>>>>  at com.sun.media.imageioimpl.plugins.clib.CLibImageReader.read(CLibImageReader.java:571)
>>>>  at javax.imageio.ImageIO.read(Unknown Source)
>>>>  at javax.imageio.ImageIO.read(Unknown Source)
>>>>  at org.geotools.gce.image.WorldImageReader.readSourceImage(WorldImageReader.java:489)
>>>>  at org.geotools.gce.image.WorldImageReader.read(WorldImageReader.java:302)
>>>>  at net.refractions.udig.catalog.rasterings.AbstractRasterGeoResource.findResource(Unknown Source)
>>>>  at net.refractions.udig.catalog.rasterings.AbstractRasterGeoResource.resolve(Unknown Source)
>>>>  at net.refractions.udig.project.internal.impl.LayerResource.processResourceCachingStrategy(Unknown Source)
>>>>  at net.refractions.udig.project.internal.impl.LayerResource.resolve(Unknown Source)
>>>>  at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.prepareRender(Unknown Source)
>>>>  at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(Unknown Source)
>>>>  at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(Unknown Source)
>>>>  at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(Unknown Source)
>>>>  at net.refractions.udig.project.internal.render.impl.RenderJob.run(Unknown Source)
>>>>  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY net.refractions.udig.project 2 0 2009-05-11 15:07:24.212
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>  at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.doRender(Unknown Source)
>>>>  at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(Unknown Source)
>>>>  at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(Unknown Source)
>>>>  at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(Unknown Source)
>>>>  at net.refractions.udig.project.internal.render.impl.RenderJob.run(Unknown Source)
>>>>  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>>
>>>>
>>>> May be of help?
>>>>
>>>> About doing it programmatically, I have used this lines:
>>>>
>>>> Project udigProject = ProjectPlugin.getPlugin().getProjectRegistry().getDefaultProject();
>>>>                        map = ProjectFactory.eINSTANCE.createMap(udigProject, "Map",new ArrayList<Layer>());
>>>>                        URL url = Activator.getDefault().getEntryAsFileURL("rasters/world_topo_bathy_200407_3x21600x10800.jpg");
>>>>
>>>>                        CatalogPlugin cp = CatalogPlugin.getDefault();
>>>>                        IServiceFactory sf = cp.getServiceFactory();
>>>>                        List<IService> services = sf.createService(url);
>>>>                        IService service = services.get(0);
>>>>                        IGeoResource geoResource = service.resources(new NullProgressMonitor()).get(0);
>>>>                        List<IGeoResource> resources = new ArrayList<IGeoResource>();
>>>>                        resources.add(geoResource);
>>>>                        ApplicationGIS.addLayersToMap(map, resources, -1);
>>>>
>>>>
>>>> Then I start the application and I get this error:
>>>>
>>>>
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:09.569
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$CompositeRendererJob.incrementalUpdate(RenderExecutorComposite.java:202)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$2.run(RenderExecutorComposite.java:340)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:09.663
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$CompositeRendererJob.incrementalUpdate(RenderExecutorComposite.java:202)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$2.run(RenderExecutorComposite.java:340)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:10.304
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$CompositeRendererJob.incrementalUpdate(RenderExecutorComposite.java:202)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$2.run(RenderExecutorComposite.java:340)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>> created
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:10.663
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$CompositeRendererJob.incrementalUpdate(RenderExecutorComposite.java:202)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$2.run(RenderExecutorComposite.java:340)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:10.694
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$CompositeRendererJob.incrementalUpdate(RenderExecutorComposite.java:202)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$2.run(RenderExecutorComposite.java:340)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:10.944
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$CompositeRendererJob.incrementalUpdate(RenderExecutorComposite.java:202)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$2.run(RenderExecutorComposite.java:340)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:11.288
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$CompositeRendererJob.incrementalUpdate(RenderExecutorComposite.java:202)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$2.run(RenderExecutorComposite.java:340)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:11.382
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$CompositeRendererJob.incrementalUpdate(RenderExecutorComposite.java:202)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$2.run(RenderExecutorComposite.java:340)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:11.600
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$CompositeRendererJob.incrementalUpdate(RenderExecutorComposite.java:202)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$2.run(RenderExecutorComposite.java:340)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:11.944
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$CompositeRendererJob.incrementalUpdate(RenderExecutorComposite.java:202)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$2.run(RenderExecutorComposite.java:340)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:11.991
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$CompositeRendererJob.incrementalUpdate(RenderExecutorComposite.java:202)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$2.run(RenderExecutorComposite.java:340)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:12.319
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$CompositeRendererJob.incrementalUpdate(RenderExecutorComposite.java:202)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$2.run(RenderExecutorComposite.java:340)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:12.366
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$CompositeRendererJob.incrementalUpdate(RenderExecutorComposite.java:202)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderExecutorComposite$2.run(RenderExecutorComposite.java:340)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY net.refractions.udig.project 1 0 2009-05-11 15:26:12.460
>>>> !MESSAGE After 2 seconds unable to cancel CGPS Renderer
>>>>
>>>> !ENTRY net.refractions.udig.catalog.rasterings 4 0 2009-05-11 15:26:13.069
>>>> !MESSAGE error reading coverage
>>>> !STACK 0
>>>> java.lang.OutOfMemoryError: Java heap space
>>>>        at java.awt.image.DataBufferByte.<init>(DataBufferByte.java:58)
>>>>        at java.awt.image.ComponentSampleModel.createDataBuffer(ComponentSampleModel.java:397)
>>>>        at java.awt.image.Raster.createWritableRaster(Raster.java:938)
>>>>        at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifier.java:1169)
>>>>        at javax.imageio.ImageReader.getDestination(ImageReader.java:2879)
>>>>        at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:943)
>>>>        at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:915)
>>>>        at javax.imageio.ImageIO.read(ImageIO.java:1422)
>>>>        at javax.imageio.ImageIO.read(ImageIO.java:1326)
>>>>        at org.geotools.gce.image.WorldImageReader.readSourceImage(WorldImageReader.java:489)
>>>>        at org.geotools.gce.image.WorldImageReader.read(WorldImageReader.java:302)
>>>>        at net.refractions.udig.catalog.rasterings.AbstractRasterGeoResource.findResource(AbstractRasterGeoResource.java:125)
>>>>        at net.refractions.udig.catalog.rasterings.AbstractRasterGeoResource.resolve(AbstractRasterGeoResource.java:156)
>>>>        at net.refractions.udig.project.internal.impl.LayerResource.processResourceCachingStrategy(LayerResource.java:221)
>>>>        at net.refractions.udig.project.internal.impl.LayerResource.resolve(LayerResource.java:131)
>>>>        at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.prepareRender(BasicGridCoverageRenderer.java:85)
>>>>        at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(BasicGridCoverageRenderer.java:49)
>>>>        at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(BasicGridCoverageRenderer.java:117)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(RenderJob.java:103)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderJob.run(RenderJob.java:203)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>> !ENTRY org.eclipse.osgi 2 1 2009-05-11 15:26:13.085
>>>> !MESSAGE NLS unused message: more in: net.refractions.udig.render.gridcoverage.basic.internal.messages
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.doRender(BasicGridCoverageRenderer.java:64)
>>>>        at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(BasicGridCoverageRenderer.java:53)
>>>>        at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(BasicGridCoverageRenderer.java:117)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(RenderJob.java:103)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderJob.run(RenderJob.java:203)
>>>> !ENTRY net.refractions.udig.project 2 0 2009-05-11 15:26:13.100
>>>> !MESSAGE
>>>> !STACK 0
>>>> java.lang.NullPointerException
>>>>        at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.doRender(BasicGridCoverageRenderer.java:64)
>>>>        at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(BasicGridCoverageRenderer.java:53)
>>>>        at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(BasicGridCoverageRenderer.java:117)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(RenderJob.java:103)
>>>>        at net.refractions.udig.project.internal.render.impl.RenderJob.run(RenderJob.java:203)
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>>        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Thank you in advance for any tip.
>>>> Best regards.
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx [mailto:udig-devel-bounces@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jody Garnett
>>>> Sent: lunes, 11 de mayo de 2009 14:55
>>>> To: User-friendly Desktop Internet GIS
>>>> Subject: Re: [udig-devel] Adding a image layer
>>>>
>>>> Hi Mario - I though this was replied to already? Did the same email
>>>> get sent twice?
>>>>
>>>> I need more information; since the stack trace does not provide a line
>>>> number. Earlier I sent out the lines of code that were failing and it
>>>> looks like something is misconfigured;
>>>>
>>>> Jody
>>>>
>>>> 2009/5/11 Mario Nuñez Jimenez <mario.nunez@xxxxxxxxxxxxxxx>:
>>>>> Hello again.
>>>>>
>>>>> The problem was the .jgw file was missing so now I have a correct one.
>>>>>
>>>>> Anyway thank you for the code lines in order to load the layer.
>>>>>
>>>>> But I still have some problems. I have been trying to load programmatically
>>>>> but something fails.
>>>>>
>>>>> Now I am trying to load as user in udig but it doesn't work so I tried a
>>>>> different map and works. The thing is that I have one with 27mb (high
>>>>> resolution, the one that I need, but doesn't work) and another with 2mb (low
>>>>> resolution that works fine), both of them are .jpg with his corresponding
>>>>> .jgw file.
>>>>>
>>>>> I get this error in udig's log when I try to load the 27mb one:
>>>>>
>>>>> !ENTRY net.refractions.udig.project 2 0 2009-05-08 13:41:52.001
>>>>>
>>>>> !MESSAGE
>>>>>
>>>>> !STACK 0
>>>>>
>>>>> java.lang.NullPointerException
>>>>>
>>>>>             at
>>>>> net.refractions.udig.catalog.rasterings.AbstractRasterGeoResource.findResource(Unknown
>>>>> Source)
>>>>>
>>>>>             at
>>>>> net.refractions.udig.catalog.rasterings.AbstractRasterGeoResource.resolve(Unknown
>>>>> Source)
>>>>>
>>>>>             at
>>>>> net.refractions.udig.project.internal.impl.LayerResource.processResourceCachingStrategy(Unknown
>>>>> Source)
>>>>>
>>>>>             at
>>>>> net.refractions.udig.project.internal.impl.LayerResource.resolve(Unknown
>>>>> Source)
>>>>>
>>>>>             at
>>>>> net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.prepareRender(Unknown
>>>>> Source)
>>>>>
>>>>>             at
>>>>> net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(Unknown
>>>>> Source)
>>>>>
>>>>>             at
>>>>> net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(Unknown
>>>>> Source)
>>>>>
>>>>>             at
>>>>> net.refractions.udig.project.internal.render.impl.RenderJob.startRendering(Unknown
>>>>> Source)
>>>>>
>>>>>             at
>>>>> net.refractions.udig.project.internal.render.impl.RenderJob.run(Unknown
>>>>> Source)
>>>>>
>>>>>             at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>>>>
>>>>>
>>>>>
>>>>> Thank you in advance for any help you can give me.
>>>>>
>>>>> Kind regards.
>>>>>
>>>>> ________________________________
>>>>>
>>>>> From: Mario Nuñez Jimenez
>>>>> Sent: viernes, 08 de mayo de 2009 9:55
>>>>> To: 'User-friendly Desktop Internet GIS'
>>>>> Subject: Adding a image layer
>>>>>
>>>>>
>>>>>
>>>>> Thank you guys,
>>>>>
>>>>> very useful information.
>>>>>
>>>>> King regards.
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------
>>>>> This e-mail and the documents attached are confidential and intended
>>>>> solely for the addressee; it may also be privileged. If you receive
>>>>> this e-mail in error, please notify the sender immediately and destroy it.
>>>>> As its integrity cannot be secured on the Internet, the Atos Origin
>>>>> group liability cannot be triggered for the message content. Although
>>>>> the sender endeavours to maintain a computer virus-free network,
>>>>> the sender does not warrant that this transmission is virus-free and
>>>>> will not be liable for any damages resulting from any virus transmitted.
>>>>>
>>>>> Este mensaje y los ficheros adjuntos pueden contener informacion
>>>>> confidencial
>>>>> destinada solamente a la(s) persona(s) mencionadas anteriormente
>>>>> pueden estar protegidos por secreto profesional.
>>>>> Si usted recibe este correo electronico por error, gracias por informar
>>>>> inmediatamente al remitente y destruir el mensaje.
>>>>> Al no estar asegurada la integridad de este mensaje sobre la red, Atos
>>>>> Origin
>>>>> no se hace responsable por su contenido. Su contenido no constituye ningun
>>>>> compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas
>>>>> partes.
>>>>> Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
>>>>> no puede garantizar nada al respecto y no sera responsable de cualesquiera
>>>>> danos que puedan resultar de una transmision de virus.
>>>>> ------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> 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
>>>> ------------------------------------------------------------------
>>>> This e-mail and the documents attached are confidential and intended
>>>> solely for the addressee; it may also be privileged. If you receive
>>>> this e-mail in error, please notify the sender immediately and destroy it.
>>>> As its integrity cannot be secured on the Internet, the Atos Origin
>>>> group liability cannot be triggered for the message content. Although
>>>> the sender endeavours to maintain a computer virus-free network,
>>>> the sender does not warrant that this transmission is virus-free and
>>>> will not be liable for any damages resulting from any virus transmitted.
>>>>
>>>> Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
>>>> destinada solamente a la(s) persona(s) mencionadas anteriormente
>>>> pueden estar protegidos por secreto profesional.
>>>> Si usted recibe este correo electronico por error, gracias por informar
>>>> inmediatamente al remitente y destruir el mensaje.
>>>> Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin
>>>> no se hace responsable por su contenido. Su contenido no constituye ningun
>>>> compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes.
>>>> Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
>>>> no puede garantizar nada al respecto y no sera responsable de cualesquiera
>>>> danos que puedan resultar de una transmision de virus.
>>>> ------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> 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
>>> ------------------------------------------------------------------
>>> This e-mail and the documents attached are confidential and intended
>>> solely for the addressee; it may also be privileged. If you receive
>>> this e-mail in error, please notify the sender immediately and destroy it.
>>> As its integrity cannot be secured on the Internet, the Atos Origin
>>> group liability cannot be triggered for the message content. Although
>>> the sender endeavours to maintain a computer virus-free network,
>>> the sender does not warrant that this transmission is virus-free and
>>> will not be liable for any damages resulting from any virus transmitted.
>>>
>>> Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
>>> destinada solamente a la(s) persona(s) mencionadas anteriormente
>>> pueden estar protegidos por secreto profesional.
>>> Si usted recibe este correo electronico por error, gracias por informar
>>> inmediatamente al remitente y destruir el mensaje.
>>> Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin
>>> no se hace responsable por su contenido. Su contenido no constituye ningun
>>> compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes.
>>> Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
>>> no puede garantizar nada al respecto y no sera responsable de cualesquiera
>>> danos que puedan resultar de una transmision de virus.
>>> ------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> 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
>> ------------------------------------------------------------------
>> This e-mail and the documents attached are confidential and intended
>> solely for the addressee; it may also be privileged. If you receive
>> this e-mail in error, please notify the sender immediately and destroy it.
>> As its integrity cannot be secured on the Internet, the Atos Origin
>> group liability cannot be triggered for the message content. Although
>> the sender endeavours to maintain a computer virus-free network,
>> the sender does not warrant that this transmission is virus-free and
>> will not be liable for any damages resulting from any virus transmitted.
>>
>> Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
>> destinada solamente a la(s) persona(s) mencionadas anteriormente
>> pueden estar protegidos por secreto profesional.
>> Si usted recibe este correo electronico por error, gracias por informar
>> inmediatamente al remitente y destruir el mensaje.
>> Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin
>> no se hace responsable por su contenido. Su contenido no constituye ningun
>> compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes.
>> Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
>> no puede garantizar nada al respecto y no sera responsable de cualesquiera
>> danos que puedan resultar de una transmision de virus.
>> ------------------------------------------------------------------
>>
>> _______________________________________________
>> 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
> ------------------------------------------------------------------
> This e-mail and the documents attached are confidential and intended
> solely for the addressee; it may also be privileged. If you receive
> this e-mail in error, please notify the sender immediately and destroy it.
> As its integrity cannot be secured on the Internet, the Atos Origin
> group liability cannot be triggered for the message content. Although
> the sender endeavours to maintain a computer virus-free network,
> the sender does not warrant that this transmission is virus-free and
> will not be liable for any damages resulting from any virus transmitted.
>
> Este mensaje y los ficheros adjuntos pueden contener informacion confidencial
> destinada solamente a la(s) persona(s) mencionadas anteriormente
> pueden estar protegidos por secreto profesional.
> Si usted recibe este correo electronico por error, gracias por informar
> inmediatamente al remitente y destruir el mensaje.
> Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin
> no se hace responsable por su contenido. Su contenido no constituye ningun
> compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes.
> Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor
> no puede garantizar nada al respecto y no sera responsable de cualesquiera
> danos que puedan resultar de una transmision de virus.
> ------------------------------------------------------------------
>
> _______________________________________________
> 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
------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended 
solely for the addressee; it may also be privileged. If you receive 
this e-mail in error, please notify the sender immediately and destroy it. 
As its integrity cannot be secured on the Internet, the Atos Origin 
group liability cannot be triggered for the message content. Although 
the sender endeavours to maintain a computer virus-free network, 
the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted. 

Este mensaje y los ficheros adjuntos pueden contener informacion confidencial 
destinada solamente a la(s) persona(s) mencionadas anteriormente 
pueden estar protegidos por secreto profesional. 
Si usted recibe este correo electronico por error, gracias por informar 
inmediatamente al remitente y destruir el mensaje. 
Al no estar asegurada la integridad de este mensaje sobre la red, Atos Origin 
no se hace responsable por su contenido. Su contenido no constituye ningun 
compromiso para el grupo Atos Origin, salvo ratificacion escrita por ambas partes. 
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor 
no puede garantizar nada al respecto y no sera responsable de cualesquiera 
danos que puedan resultar de una transmision de virus. 
------------------------------------------------------------------



Back to the top