Good to hear that it's working for you Yang. Michael
On 24 February 2012 00:10, Y_Wang <murielw...@hotmail.com> wrote: > Thanks Michael! > > I managed to use PolygonExtractionProcess to create polygons from a cropped > raster (to routes env). > Tested using 500*500, 100*100 grid, both working. but 10*10 grid seems > causing memory problem. > > Anyway, the final bit, i.e., creating line segments, my solution is to > intersect all the grids with each route, then loop through the grid > collection and cut route into pieces (geometry.intersection()). Outputs are > either multistring or linestring. This way, I can both assign line segment > length and extracted raster value to the feature. > > Thanks very much! > ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users