Hi Andrea, Simone,
I need some help to get out of this (confusion of mine).

I checked out the sources and tried the maven2 build. The build fails at
some point with:

/home/moovida/codeapisexes/geotools_svn/trunk/gt/modules/plugin/epsg-postgresql/src/main/java/org/geotools/referencing/factory/epsg/PostgreDataSource.java:[114,7]
 
org.geotools.referencing.factory.epsg.PostgreDataSource is not abstract and 
does not override abstract method isWrapperFor(java.lang.Class) in 
java.sql.Wrapper

I see different build problems coming through the list, so I assume it
is a momentary lapse of reason.
However the geotiff jar was build, so I tried to use it and here my
doubts and problems:

- using the geotiff plugin approach gives me the same error as before (geokey
directory), which I expected.
- the WorldImageReader uses the geotiff library, right? (it is obvious,
but I need some certainties in life :)) Using that, the error is the same as 
before.

I assumed that I would be able to substitute the 2.4 snapshot of the
geotiff library and use the thing. That should also be true, since the
error I get is not of some dependecy kind. Which library should I
substitute to view the paletted geotiff?

Thanks
Andrea


PS: I tried to search for a nightly build in order to try the thing
without building all on my own. Is there something like that available?
I browsed through the website, but had no luck.





* [A.D. 20/01/07 15:30], Simone Giannecchini <[EMAIL PROTECTED]> probably wrote:
> Ciao Andrea (both actually!!!),
> from the information you send us I can spot two problems:
> 
> 1>A  tiff file by itself is not enough for working with georeferenced
> data unless it is a geotiff, because you have no CRS (for which you
> need a prj file) and no georeferencing (for which you need a wold
> file). The point now is, what is a geotiff? Well the specification
> more or less states that a geotiff is a tiff with additional tags
> describing the model space (coordinate reference system) and the
> relationship between the latter and the raster space (usually an
> affine transformation or some ground control points for doing
> warping). In your case it seemed that you did not have a real geotiff
> and at the same time you were missing the prj and the world file.
> 
> Then you provided a world file but no prj file, hence to proceed we
> assume wgs84 which is the most common and we print a warning message
> saying, hey no PRJ provided.
> 
> 2>The second error you are seeing is a known error that has been
> fixed. I guess your image is not rgb or grayscale but it has a palette
> (or a color map as you like) which was not well supported in geotools
> 2.3.0 due to interpolation issues.
> I guess you are using GeoServer 1.5 beta with geotools 2.3.0. Well
> good news is this, the  actual versions of geotools 2.3.1-snapshot and
> geoserver 1.5.0-snapshot DO support colormapped tiffs and geotiffs
> with no problems.
> 
> 
> 
> <<Conclusion>>
> The best thing to do are as follows:
> 
> 1>provide, if you can and wish to, a sample image since I am
> collecting a lot of test-cases to test the fixes we introduced. This
> would of GREAT help to us.
> 
> 2>build geotools 2.3.x branch and geoserver 1.5.x breanch from code
> (the procedure is pretty easy and we can guide you through it). If you
> are not willing to take this path, you have to be patient a couple of
> weeks and wait for the next beta of geoserver 1.5 which will have a
> tons of improvements.
> 
> 
> Regards,
> Simone.
> 
> 
> On 1/20/07, Andrea Aime <[EMAIL PROTECTED]> wrote:
> >Andrea Antonello ha scritto:
> >> Thanks Andrea,
> >> this is great news!
> >>
> >> 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? 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.
> >
> >> 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.
> >
> >Cheers
> >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
> >
> 
> 
> -- 
> -------------------------------------------------------
> Eng. Simone Giannecchini
> President /CEO GeoSolutions
> 
> http://www.geo-solutions.it
> 
> -------------------------------------------------------
> 

-- 
____________________________________________________________________________
HydroloGIS - Environmental Safety Modelling
Siemens Str. 19 via Siemens
I-39100 Bozen - Bolzano 
www.hydrologis.com

Andrea Antonello
Environmental Engineer
PhD Student at www.uniurb.it
JGrass, Free Open Source GIS www.jgrass.org
tel.     +39 0471 068065  
mobile:  +39 328 8497722
fax:     +39 36 328 8497722
email:   [EMAIL PROTECTED]

"Let it be as much a great honour to take as to give learning,
if you want to be called wise."
Skuggsja' - The King's mirror - 1240 Reykjavik
____________________________________________________________________________

-------------------------------------------------------------------------
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