Hi Linda,

> http://www.mail-archive.com/[email protected]/msg08387.html
> you told about the class VectorToRasterProcess and its static
> helper method: process. Is it right that this class is not in the
> javadocs?

It doesn't appear in the javadocs for GeoTools distributions because
it is part of an 'unsupported' module, gt-process, which hasn't yet
met all of the criteria for test coverage etc.  However, you can get
the module in a number of ways.

Download jars for binaries and sources manually from here...
http://download.osgeo.org/webdav/geotools/org/geotools/gt-process/2.6.2/

Checkout the sources using svn with:
svn co http://svn.osgeo.org/geotools/tags/2.6.2/modules/unsupported/process
process

Or, if you are using maven as your build tool just add gt-process as a
dependency in your pom.xml file.

> Or which import is necessary to use it? Or should I import
> the whole class into my own project?

import org.geotools.process.raster.VectorToRasterProcess

> I really need a method to rasterize a shape file.
> Do you have any idea how to rename each cell of the raster to identify
> them by a code or something like that?

When you rasterize your vector features you specify a feature
attribute from which the raster cell values will be taken. Any numeric
attribute can be used.

Hope this helps.

Michael

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to