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!  

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/get-line-segments-based-on-raster-grids-tp4492151p4498587.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

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

Reply via email to