public static SimpleFeatureType createGridFeatureType ( @ Nonnull final MapfishMapContext mapContext , @ Nonnull final Class < ? extends Geometry > geomClass ) { final SimpleFeatureTypeBuilder typeBuilder = new SimpleFeatureTypeBuilder ( ) ; CoordinateReferenceSystem projection = mapContext . getBounds ( ) . getProjection ( ) ; typeBuilder . add ( Constants . Style . Grid . ATT_GEOM , geomClass , projection ) ; typeBuilder . setName ( Constants . Style . Grid . NAME_LINES ) ; return typeBuilder . buildFeatureType ( ) ; }
Create the grid feature type .