Interface ObjectFactory
-
- All Superinterfaces:
- Factory
- All Known Subinterfaces:
- CoordinateOperationFactory, CRSFactory, CSFactory, DatumFactory
@Extension public interface ObjectFactory extends Factory
Base interface for all factories of identified objects. Factories build up complex objects from simpler objects or values. This factory allows applications to make coordinate systems, datum or coordinate reference systems that cannot be created by an authority factory. This factory is very flexible, whereas the authority factory is easier to use.Object properties
Most factory methods expect a
Mapargument. The map is often (but is not required to be) aPropertiesinstance. The map shall contains at least a"name"property. In the common case where the name is the only property, the map may be constructed withCollections.singletonMap("name", theName)where theName is an arbitrary name as free text. Additionally, implementations are encouraged to recognize at least the properties listed in the following table. More implementation-specific properties may be added as well. In any case, unknown properties will be ignored.Property name Value type Value given to "name" IdentifierorStringIdentifiedObject.getName()"alias" String,String[],GenericNameorGenericName[]IdentifiedObject.getAlias()"authority" StringorCitationIdentifier.getAuthority()on the name"version" StringIdentifier.getVersion()on the name"identifiers" IdentifierorIdentifier[]IdentifiedObject.getIdentifiers()"remarks" StringorInternationalStringIdentifiedObject.getRemarks()The
"name"property is mandatory. All others are optional. Additionally, all localizable attributes like"remarks"may have a language and country code suffix. For example the"remarks_fr"property stands for remarks in French and the"remarks_fr_CA"property stands for remarks in French Canadian.- Since:
- GeoAPI 2.0
DataMelt 3.0 © DataMelt by jWork.ORG