On 21 May 2010 23:30, darweesh wrote: > > Yes, I 'm working with a hexagonal lattice ,I d be very grateful if u send > me the code ..........
Hello, Code to create a hexagonal lattice has just gone up as a new module, "grids", in the unsupported section. You can browse it here: http://svn.osgeo.org/geotools/trunk/modules/unsupported/grids/ or download it from there using your favourite subversion client. There is an example program to get you started here: http://svn.osgeo.org/geotools/trunk/modules/unsupported/grids/src/main/java/org/geotools/grids/example/HexagonExample.java Note that the code is written for GeoTools 2.7, but I think it should work with GeoTools 2.6.x if you do a search and replace to change all instances of "SimpleFeatureCollection" to "FeatureCollection<SimpleFeatureType, SimpleFeature>". If you try the code please let us know how you go with it. Michael ------------------------------------------------------------------------------ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
