Hi Thomas,

By zones I assume you mean regions in your geotiff defined by uniform
cell values.

If you create a GridCoverage2D object from your geotiff you could then
turn the value zones into vector polygons using the
PolygonExtractionProcess class which is part of the gt-process-raster
module:

https://github.com/geotools/geotools/blob/master/modules/unsupported/process-raster/src/main/java/org/geotools/process/raster/PolygonExtractionProcess.java

Although this class is set up to be used as a process called by an
application, you can also use it "manually" by creating an instance
and calling its execute method.

Once you have the polygons (returned from the process as a feature
collection) you could intersect these with your shapefile polygons and
save the result polygons in whatever form you want (e.g. create
another feature collection and write to a new shapefile).

Hope that it is enough to get you started.

Michael

On 12 February 2013 20:08, thomas dolley <[email protected]> wrote:
> Hello everyone,
>
> I have a geotiff file and a shape file.
> The geotiff file defined somes zone().
>
> I would like to split into part each polygone of my shape file that
> intersect 2(or more) differents zones.
> I have read a lot of geotool documentation but I'm unable to find how to
> proceed.
> Do you have any idea that I could explore ?
>
> Best regards
>
> Thomas
>
> ------------------------------------------------------------------------------
> Free Next-Gen Firewall Hardware Offer
> Buy your Sophos next-gen firewall before the end March 2013
> and get the hardware for free! Learn more.
> http://p.sf.net/sfu/sophos-d2d-feb
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to