Class FrenchProfile

java.lang.Object
org.apache.sis.util.Static
org.apache.sis.profile.france.FrenchProfile

public final class FrenchProfile extends Static
Provides implementations of French extensions defined by AFNOR.
Since:
0.4
Version:
0.4
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The "http://www.cnig.gouv.fr/2005/fra" URL.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Do not allow instantiation of this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Object
    toAFNOR(Object metadata)
    Returns the given metadata object as an AFNOR-compliant instance.
    static org.opengis.referencing.ReferenceSystem
    toAFNOR(org.opengis.referencing.ReferenceSystem rs, boolean indirect)
    Returns the given given reference system as an AFNOR-compliant instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • FrenchProfile

      private FrenchProfile()
      Do not allow instantiation of this class.
  • Method Details

    • toAFNOR

      public static Object toAFNOR(Object metadata)
      Returns the given metadata object as an AFNOR-compliant instance. The current implementation recognizes the following types:
      AFNOR extensions to ISO 19115
      GeoAPI type AFNOR XML element
      DataIdentification FRA_DataIdentification
      Constraints FRA_Constraints
      LegalConstraints FRA_LegalConstraints
      SecurityConstraints FRA_SecurityConstraints
      This method does not handle the ReferenceSystem type, because AFNOR requires to specify whether the system is direct or indirect. For reference system types, use toAFNOR(ReferenceSystem, boolean) instead.
      Parameters:
      metadata - the metadata to make AFNOR-compliant, or null.
      Returns:
      a copy of the metadata as an AFNOR-compliant object, or metadata if the metadata was null, 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, or null.
      indirect - false for FRA_DirectReferenceSystem, or true for FRA_IndirectReferenceSystem.
      Returns:
      a copy of the given reference system as an AFNOR-compliant object, or rs if the given reference system was null or already of the appropriate type.