Hello Agossa,

>  the GridCoverage got from VectorToRasterProcess cannot be resampled or
> saved to tif. It has no ColorModel.
> What's wrong?

Ah, you're quite right. The image backing the output grid coverage
doesn't has a null ColorModel.

The cause is the flattenXXX methods in VectorToRasterProcess which
convert the 4 band ARGB image that the vector data are drawn on into a
single band int or float image.

A color model could be assigned at that stage but will there always be
an appropriate choice ?  I'm not clear on that.  For instance, see
this post on the JAI forum...

http://forums.java.net/jive/thread.jspa?messageID=137752&#137752

Although the context for that post is multi-band images, I think the
point about the difference between GIS data and graphic images still
applies.

I'd like to defer to Simone and the other image savvy developers for
advice about this.

Michael

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to