set<property>()
. Methods which set per attribute state are named <property>()
. Furthermore calls to per attribute Global state is reset after a call to {@link #buildFeatureType()}. Per attribute state is reset after a call to {@link #add}.
A default geometry for the feature type can be specified explictly via {@link #setDefaultGeometry(String)}. However if one is not set the first geometric attribute ( {@link GeometryType}) added will be resulting default. So if only specifying a single geometry for the type there is no need to call the method. However if specifying multiple geometries then it is good practice to specify the name of the default geometry type. For instance:
builder.add( "pointProperty", Point.class ); builder.add( "lineProperty", LineString.class ); builder.add( "polygonProperty", Polygon.class ); builder.setDefaultGeometry( "lineProperty" );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|