Package org.geotools.grid.ortholine
Class OrthoLineFeatureBuilder
- Object
- 
- GridFeatureBuilder
- 
- OrthoLineFeatureBuilder
 
 
- 
 public class OrthoLineFeatureBuilder extends GridFeatureBuilder A basic implementation ofLineFeatureBuilderwhich will create aSimpleFeatureTypehaving two properties:- element - TYPE LineString
- id - TYPE Integer
 Line elements will be assigned sequential id values starting with 1. - Since:
- 2.7
- Author:
- mbedward
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_TYPE_NAMEDefault feature TYPE name: "linegrid"protected intidstatic StringID_ATTRIBUTE_NAMEName used for the integer id attribute: "id"static StringLEVEL_ATTRIBUTE_NAMEName of the Integer level attribute ("level")static StringVALUE_ATTRIBUTE_NAMEName of the Object value attribute ("value")- 
Fields inherited from class GridFeatureBuilderDEFAULT_GEOMETRY_ATTRIBUTE_NAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description OrthoLineFeatureBuilder()Creates a new instance with a feature TYPE having the default name and a null coordinate reference system.OrthoLineFeatureBuilder(String typeName, CoordinateReferenceSystem crs)Creates a new instance.OrthoLineFeatureBuilder(CoordinateReferenceSystem crs)Creates a new instance with a feature TYPE having the default name and the supplied coordinate reference system.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static SimpleFeatureTypecreateType(String typeName, CoordinateReferenceSystem crs)Creates the feature TYPEvoidsetAttributes(GridElement el, Map<String,Object> attributes)Sets the following attributes in the providedMap: id: sequential integer level: integer level of associated with the element value: X-ordinate for a vertical line; Y-ordinate for a horizontal line- 
Methods inherited from class GridFeatureBuildergetCreateFeature, getFeatureID, getType
 
- 
 
- 
- 
- 
Field Detail- 
DEFAULT_TYPE_NAMEpublic static final String DEFAULT_TYPE_NAME Default feature TYPE name: "linegrid"- See Also:
- Constant Field Values
 
 - 
ID_ATTRIBUTE_NAMEpublic static final String ID_ATTRIBUTE_NAME Name used for the integer id attribute: "id"- See Also:
- Constant Field Values
 
 - 
LEVEL_ATTRIBUTE_NAMEpublic static final String LEVEL_ATTRIBUTE_NAME Name of the Integer level attribute ("level")- See Also:
- Constant Field Values
 
 - 
VALUE_ATTRIBUTE_NAMEpublic static final String VALUE_ATTRIBUTE_NAME Name of the Object value attribute ("value")- See Also:
- Constant Field Values
 
 - 
idprotected int id 
 
- 
 - 
Constructor Detail- 
OrthoLineFeatureBuilderpublic OrthoLineFeatureBuilder() Creates a new instance with a feature TYPE having the default name and a null coordinate reference system.- See Also:
- DEFAULT_TYPE_NAME
 
 - 
OrthoLineFeatureBuilderpublic OrthoLineFeatureBuilder(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:
- DEFAULT_TYPE_NAME
 
 - 
OrthoLineFeatureBuilderpublic OrthoLineFeatureBuilder(String typeName, CoordinateReferenceSystem crs) Creates a new instance.- Parameters:
- typeName- name for the feature TYPE; if- nullor empty, DEFAULT_TYPE_NAME will be used
- crs- coordinate reference system (may be- null)
 
 
- 
 - 
Method Detail- 
createTypeprotected static SimpleFeatureType createType(String typeName, CoordinateReferenceSystem crs) Creates the feature TYPE- Parameters:
- typeName- name for the feature TYPE; if- nullor empty, DEFAULT_TYPE_NAME will be used
- crs- coordinate reference system (may be- null)
- Returns:
- the feature TYPE
 
 - 
setAttributespublic void setAttributes(GridElement el, Map<String,Object> attributes) Sets the following attributes in the providedMap:- id: sequential integer
- level: integer level of associated with the element
- value: X-ordinate for a vertical line; Y-ordinate for a horizontal line
 - Specified by:
- setAttributesin class- GridFeatureBuilder
- Parameters:
- el- the element from which the new feature is being constructed
- attributes- a- Mapinto which the attributes will be put
 
 
- 
 
-