Sorry - just replied to this on your other thread before noticing this
one.  Here is the same answer for the sake of anyone searching the
archives later...

RasterTpVectorProcess was rewritten and is now called
PolygonExtractionProcess. The usage is slightly different (just create
an instance of the class directly) and should be clear from the
javadocs. You can find it in the process-raster module in the
...raster/gs package:

http://svn.osgeo.org/geotools/tags/8.0-M4/modules/unsupported/process-raster/src/main/java/org/geotools/process/raster/gs/

If you are working with a large grid, it might be a lot easier to do
it another way. For example, generate the LineStrings for the grid in
the X direction (you only need the end points) and cut your route
lines with those, then generate LineStrings for the Y direction and do
another pass.

Michael

On 22 February 2012 03:24, Y_Wang <murielw...@hotmail.com> wrote:
> Dear all,
>
> I have a question on geometry:
> I have a raster grid and a route file. How can I intersect routes with the
> grid cell so that I can get line segments along each cell the route running
> along? length of these segments are important for further use.
>
> I searched the forum, found that I may be possible to use
> RasterToVectorProcess method to get polygons out from grids, then use
> intersection. However, it seems that RasterToVectorProcess is no longer
> under org.geotools.process.raster....(in 8.0 Snapshot). would you give me a
> hint where I can find it? Is it now called
> org.geotools.process.raster.gt.PolygonExtractionProcess?
>
> another issue may be relevant is that is there any way in GeoTools to
> produce raster masks along the routes? It will seriously reduce the number
> of cells going to be processed.
>
>
> thanks,
>
> Yang
>
> --
> View this message in context: 
> http://osgeo-org.1560.n6.nabble.com/get-line-segments-based-on-raster-grids-tp4492151p4492151.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to