Hello Michael
Thanks for your answer. I am rather talking about the FeatureCollection to
Raster conversion using the FeatureRasterizer class. Switching to Geotools
2.6 will give me so much to do. I am using Geotools 2.4.
Agossa.


mbedward wrote:
> 
> Hello,
> 
> Steve's raster to vector code is now included in the gt-process module
> in GeoTools version 2.6. Parts of the code were rewritten while
> porting it to GeoTools so, if possible, could you try switching to
> that version and see if you still get the same registration error ?
> 
> You will need to include the gt-process jar in your project. The
> easiest way to use do the conversion is to use the static
> RasterToVectorProcess.process method.  Here is the method header:
> 
>     /**
>      * A static helper method that can be called directy to run the
> process.
>      * <p>
>      * The process interface is useful for advertising functionality to
>      * dynamic applications, but for 'hands on' coding this method is much
> more
>      * convenient than working via {...@linkplain
> org.geotools.process.Process#execute }.
>      *
>      * @param cov the input coverage
>      * @param band the index of the band to be vectorized
>      * @param bounds bounds of the area (in world coordinates) to
> vectorize; if {...@code null}
>      *            the whole coverage
>      * @param outsideValues a collection of one or more values which
> represent 'outside' or no data
>      * @param progress an optional ProgressListener (may be null)
>      *
>      * @return a FeatureCollection containing simple polygon features
>      *
>      */
>     public static FeatureCollection<SimpleFeatureType,SimpleFeature>
> process(
>             GridCoverage2D cov,
>             int band,
>             Envelope2D bounds,
>             Collection<Double> outsideValues,
>             ProgressListener progress) throws ProcessException {
> 
> If you are using maven as your build tool you can simple add
> gt-process as a dependency to your project.
> 
> You will need to swap over to one of the GeoTools 2.6 releases: the
> most recent being 2.6-M3.
> 
> Please try it and let me know how it works for you.
> 
> Michael
> 
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Raster-to-vector-conversion-Java-proof-of-concept-attached-tp1941737p3780287.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to