> >In fact now starts to read it, but not without problem.
> >The geotiff in fact has a world file. It should be a "normal" file
> >(whatever that could mean).
> >
> >Jan 20, 2007 12:01:46 PM org.geotools.renderer.lite.StreamingRenderer 
> >renderRaster
> >WARNING: The number of image bands (3) differs from the number of supplied 
> >'SampleDimension' objects (1).
> >java.lang.IllegalArgumentException: The number of image bands (3) differs 
> >from the number of supplied 'SampleDimension' objects (1).
> >     at 
> >     
> > org.geotools.coverage.grid.Grid2DSampleDimension.create(Grid2DSampleDimension.java:118)
> >     at 
> >     
> > org.geotools.coverage.grid.GridCoverage2D.<init>(GridCoverage2D.java:269)
> >     at 
> >     
> > org.geotools.coverage.processing.operation.FilteredSubsampledGridCoverage2D.<init>(FilteredSubsampledGridCoverage2D.java:60)
> >     at 
> >     
> > org.geotools.coverage.processing.operation.FilteredSubsampledGridCoverage2D.create(FilteredSubsampledGridCoverage2D.java:115)
> >     at 
> >     
> > org.geotools.coverage.processing.operation.FilteredSubsample.doOperation(FilteredSubsample.java:133)
> >     at 
> >     
> > org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.filteredSubsample(GridCoverageRenderer.java:793)
> >     at 
> >     
> > org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer.paint(GridCoverageRenderer.java:455)
> >     at 
> >     
> > org.geotools.renderer.lite.StreamingRenderer.renderRaster(StreamingRenderer.java:1732)
> >     at 
> >     
> > org.geotools.renderer.lite.StreamingRenderer.processSymbolizers(StreamingRenderer.java:1586)
> >     at 
> >     
> > org.geotools.renderer.lite.StreamingRenderer.process(StreamingRenderer.java:1530)
> >     at 
> >     
> > org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1472)
> >     at 
> >     
> > org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:543)
> >     at 
> >     
> > org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:406)
> >
> >
> >The geotiff is a "Carta Tecnica Provinciale", which you should probably
> >know and have dealth with. 
> 
> Unfortunately not. I never played with raster italian data, believe it 
> or not, my data experience is only with freely available USA data.
> Can you provide us a sample by private mail? 

Yes, I'll send you the sample that gives me the error.

> Also, which version of 
> Geotools are you using? I suggest to checkout and compile 2.3.x branch
> if you haven't already done so. Raster support in 2.2.x is rather poor,
> and quite a bit of improvements got in 2.3.x after the 2.3.0 release.

I'm using the stable 2.3 download.

> >PS: another question: the projection is taken by default in lat/long, if I 
> >do not
> >supply a .prj file with the info in it. Is that the right approach? I've
> >never seen geotiffs or jpegs with the projection file. 
> 
> Well, since there is no way to tell whic CRS is it, it's a guess
> that's as good as any other imho. Most data coming from NASA and similar
> sources in in fact unprojected WGS84 data.

Yes, I agree, that is good since it is easy to create it.

Thanks,
Ciao
Andrea



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to