Class DefaultGridFeatureBuilder

Object
GridFeatureBuilder
DefaultGridFeatureBuilder

public final class DefaultGridFeatureBuilder extends GridFeatureBuilder
A basic implementation of GridFeatureBuilder which will create a SimpleFeatureType having two properties:
  • element - TYPE Polygon
  • id - TYPE Integer
The attribute names can also be referred to using GridFeatureBuilder.DEFAULT_GEOMETRY_ATTRIBUTE_NAME and ID_ATTRIBUTE_NAME

Grid elements will be assigned sequential id values starting with 1.

Since:
2.7
Author:
mbedward
  • Field Details

    • DEFAULT_TYPE_NAME

      public static final String DEFAULT_TYPE_NAME
      Default feature TYPE name: "grid"
      See Also:
    • ID_ATTRIBUTE_NAME

      public static final String ID_ATTRIBUTE_NAME
      Name used for the integer id attribute: "id"
      See Also:
  • Constructor Details

    • DefaultGridFeatureBuilder

      public DefaultGridFeatureBuilder()
      Creates a new instance with a feature TYPE having the default name and a null coordinate reference system.
      See Also:
    • DefaultGridFeatureBuilder

      public DefaultGridFeatureBuilder(CoordinateReferenceSystem crs)
      Creates a new instance with a feature TYPE having the default name and the supplied coordinate reference system.
      Parameters:
      crs - coordinate reference system (may be null)
      See Also:
    • DefaultGridFeatureBuilder

      public DefaultGridFeatureBuilder(String typeName, CoordinateReferenceSystem crs)
      Creates a new instance.
      Parameters:
      typeName - name for the feature TYPE; if null or empty, DEFAULT_TYPE_NAME will be used
      crs - coordinate reference system (may be null)
  • Method Details