Re: [Geotools-gt2-users] Geotiff writing + unable to re-open them

2008-06-11 Thread Martin Desruisseaux
Anaxa Gore a écrit : The only thing i do is this : Color[][] colors = new Color[][] {{Color.WHITE, color}}; GridCoverage2D gc = gcf.create(Horizon Coverage, rasterCoverage, this.rasterEnvelope,null,null,null,colors,null); I am searching how to create the style !!! I want the white

Re: [Geotools-gt2-users] Geotiff writing + unable to re-open them

2008-06-11 Thread Matt Foster
Martin Desruisseaux wrote: Anaxa Gore a crit : The only thing i do is this : Color[][] colors = new Color[][] {{Color.WHITE, color}}; GridCoverage2D gc = gcf.create("Horizon Coverage", rasterCoverage, this.rasterEnvelope,null,null,null,colors,null); I am searching how to

Re: [Geotools-gt2-users] Geotiff writing + unable to re-open them

2008-05-29 Thread aymen83
Anaxa Gore wrote: Hi, I am writing some geotiff and would like then open them using GT ! My writing operation is thi s: GridCoverageFactory gcf = new GridCoverageFactory(); Color[][] colors = new Color[][] {{Color.WHITE, color}}; GridCoverage2D gc = gcf.create(Horizon Coverage,

Re: [Geotools-gt2-users] Geotiff writing + unable to re-open them

2008-05-29 Thread Simone Giannecchini
Ciao Anaxa, which version of geotools are you working with? Did you update recently? Anywa, can you please try to isolate your code and provide a test case that I can ply with? Simone. On Wed, May 28, 2008 at 5:17 PM, Anaxa Gore [EMAIL PROTECTED] wrote: Hi, I am writing some geotiff and

Re: [Geotools-gt2-users] Geotiff writing + unable to re-open them

2008-05-29 Thread Anaxa Gore
Hi, I tried to open the coverage separatly with a little GT test program and it works well... I cant understand why it doesnt work in my software... Thomas 2008/5/29 Anaxa Gore [EMAIL PROTECTED]: Simone, I updated GT and tried again... but get always the same errors ... Even though, I get

Re: [Geotools-gt2-users] Geotiff writing + unable to re-open them

2008-05-29 Thread Anaxa Gore
Ok so I get an idea of why it did not work : I replaced : MapContext context = new DefaultMapContext(DefaultGeographicCRS.WGS84); context.setTitle(projDir.getName()); with : MapContext context = new DefaultMapContext(DefaultGeographicCRS.WGS84); context.setTitle(projDir.getName()); try {

Re: [Geotools-gt2-users] Geotiff writing + unable to re-open them

2008-05-29 Thread Simone Giannecchini
Ciao Thomas, can you show me your styling code? Could you also tell me the ColorModel and SampleModel for your data? ciao, Simone. On Thu, May 29, 2008 at 5:47 PM, Anaxa Gore [EMAIL PROTECTED] wrote: Ok so I get an idea of why it did not work : I replaced : MapContext context = new

[Geotools-gt2-users] Geotiff writing + unable to re-open them

2008-05-28 Thread Anaxa Gore
Hi, I am writing some geotiff and would like then open them using GT ! My writing operation is thi s: GridCoverageFactory gcf = new GridCoverageFactory(); Color[][] colors = new Color[][] {{Color.WHITE, color}}; GridCoverage2D gc = gcf.create(Horizon Coverage, rasterCoverage,