Hello,

> In my case the polygons are regular, the first thing i thought of is to get
> the area and write an algorithm to fill it (tessellation) with hexagons ,
> then calculate my calculation for the center of the polygons and then color
> it based on dat calculations...( i think that wt u meant by similar to the
> shape files )

Were you thinking about hexagons because equal distance to
neighbouring cells is important in your application ?  If so, I have
some code (somewhere) from one of my own past projects that can create
a hexagonal lattice.

> But it seems to be stupid sense the GridCoverage exist and i dont know how
> to change the geomtry of the grid instead of rectangles .. thanks again

GridCoverage2D only supports a rectangular grid. Think of it as a
raster image with some geographic and, optionally, category
information added.

If you want to work with hexagons let me know and I'll go looking for the code.

Michael

------------------------------------------------------------------------------

_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to