Hello Yang,

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:00, Y_Wang <murielw...@hotmail.com> wrote:
> Thanks Michael!
> It works!
>
> I have another question on geometry (this may be better to post in separate
> thread):
> 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?
>
> 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?
>
> thanks,
>
> Yang
>
>
>
> --
> View this message in context: 
> http://osgeo-org.1560.n6.nabble.com/create-points-along-input-lines-tp4487334p4492081.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