Re: [Geotools-devel] from vector to rasters and back

2006-01-09 Thread Andrea Antonello
> Both your descriptions are logically correct, but insanely > inefficient approaches. Yes, I believe insane is absolutely the right word :) > Another way of saying "vector to raster" is "rendering". The > existing rendering code in geotools should provide some fine examples > of turning vectors

Re: [Geotools-devel] from vector to rasters and back

2006-01-07 Thread Paul Ramsey
Andrea, Both your descriptions are logically correct, but insanely inefficient approaches. Another way of saying "vector to raster" is "rendering". The existing rendering code in geotools should provide some fine examples of turning vectors into rasters. For raster to vector, your earlier

[Geotools-devel] from vector to rasters and back

2006-01-07 Thread andrea antonello
Some time ago I posted a question about how to convert features to rasters and back. I thought an simple way would be the following, assuming that my raster is represented by a matrix grid. v.to.rast: looping through the rows and columns of the matrix, query if the point given by the coordinates (