creates a vector grid of hexagonal elements . hexagon size is expressed as side length . to create hexagons of specified area you can use the static @linkplain hexagons #areatosidelength double method to calculate theequivalent side length . the hexagons created by this method are orientated with a pair of edges parallel to the top and bottom of the bounding envelope @linkplain org.geotools.grid.hexagon.hexagon.orientation #flat . the bounding rectangle of each hexagon has width sidelen 2.0 andheight sidelen sqrt 3.0 . the grid 's origin is the minimum x and y point of the envelope . the feature type of grid features has two properties : element - type polygon id - type integer concode_field_sep PlaceHolder placeHolder concode_field_sep SimpleFeatureSource createSquareGrid concode_elem_sep SimpleFeatureSource createSquareGrid concode_elem_sep SimpleFeatureSource createSquareGrid
SimpleFeatureSource function ( ReferencedEnvelope arg0 , double arg1 ) { if ( arg0 == null ) { throw new IllegalArgumentException ( "srini_string" ) ; } return Hexagons . createGrid ( arg0 , arg1 , HexagonOrientation . FLAT , new DefaultGridFeatureBuilder ( arg0 . getCoordinateReferenceSystem ( ) ) ) ; }