Package org.apache.sis.profile.france
Class FrenchProfile
java.lang.Object
org.apache.sis.util.Static
org.apache.sis.profile.france.FrenchProfile
Provides implementations of French extensions defined by AFNOR.
- Since:
- 0.4
- Version:
- 0.4
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectReturns the given metadata object as an AFNOR-compliant instance.static org.opengis.referencing.ReferenceSystemtoAFNOR(org.opengis.referencing.ReferenceSystem rs, boolean indirect) Returns the given given reference system as an AFNOR-compliant instance.
-
Field Details
-
NAMESPACE
The"http://www.cnig.gouv.fr/2005/fra"URL. The usual prefix for this namespace is"fra".- See Also:
-
-
Constructor Details
-
FrenchProfile
private FrenchProfile()Do not allow instantiation of this class.
-
-
Method Details
-
toAFNOR
Returns the given metadata object as an AFNOR-compliant instance. The current implementation recognizes the following types:
This method does not handle theAFNOR extensions to ISO 19115 GeoAPI type AFNOR XML element DataIdentificationFRA_DataIdentificationConstraintsFRA_ConstraintsLegalConstraintsFRA_LegalConstraintsSecurityConstraintsFRA_SecurityConstraintsReferenceSystemtype, because AFNOR requires to specify whether the system is direct or indirect. For reference system types, usetoAFNOR(ReferenceSystem, boolean)instead.- Parameters:
metadata- the metadata to make AFNOR-compliant, ornull.- Returns:
- a copy of the metadata as an AFNOR-compliant object, or
metadataif the metadata wasnull, does not have an AFNOR type, or was already of the appropriate type.
-
toAFNOR
public static org.opengis.referencing.ReferenceSystem toAFNOR(org.opengis.referencing.ReferenceSystem rs, boolean indirect) Returns the given given reference system as an AFNOR-compliant instance. AFNOR requires the reference systems to be either direct or indirect. Those two cases are represented by the following schema fragments:Direct:
Indirect:
- Parameters:
rs- the reference system to make AFNOR-compliant, ornull.indirect-falseforFRA_DirectReferenceSystem, ortrueforFRA_IndirectReferenceSystem.- Returns:
- a copy of the given reference system as an AFNOR-compliant object, or
rsif the given reference system wasnullor already of the appropriate type.
-