Enabling or Disabling NTv2 Transform

This section describes the procedure to enable or disable the NTv2 transformation.

Follow these steps:
  1. Locate li-sdk-coordsys-ntv2-1.5.3.jar file in <Spectrum>/server/modules/spatial/lib.
  2. Unzip the jar and extract the NTv2.xml file.
  3. Edit the Enabled field as required.

    When Enabled is set as False:

    <NTv2Conversion>
          <Description>NTv2 Conversion for Australia</Description>
          <GridFile>GDA94_GDA2020_conformal.gsb</GridFile>
          <Enabled>false</Enabled>
          <SourceDatum>
            <DatumID>116</DatumID>
          </SourceDatum>
          <DestinationDatum>
            <DatumID>1028</DatumID>
          </DestinationDatum>
    </NTv2Conversion>
    <NTv2Conversion>
          <Description>NTv2 Conversion for Australia</Description>
          <GridFile>GDA94_GDA2020_conformal.gsb</GridFile>
          <Enabled>false</Enabled>
          <SourceDatum>
            <DatumID>1006</DatumID>
          </SourceDatum>
          <DestinationDatum>
            <DatumID>1028</DatumID>
          </DestinationDatum>
    </NTv2Conversion>                    
    When Enabled is set as True:

    If you need to enable the adjustments associated with the “distortion” (GDA94_GDA2020_conformal_and_distortion.gsb), you need to change the “false” to “true” under that section of the file. Only one of these two sets should be enabled at any one time as they cover the same datum conversions. If you enable both, only one of the two will be enabled. Since you will not know which one is enabled, setting both to true is not supported.

    <NTv2Conversion>
          <Description>NTv2 Conversion for Australia</Description>
          <GridFile>GDA94_GDA2020_conformal_and_distortion.gsb</GridFile>
          <Enabled>true</Enabled>
          <SourceDatum>
            <DatumID>116</DatumID>
          </SourceDatum>
          <DestinationDatum>
            <DatumID>1028</DatumID>
          </DestinationDatum>
     </NTv2Conversion>
     <NTv2Conversion>
          <Description>NTv2 Conversion for Australia</Description>
          <GridFile>GDA94_GDA2020_conformal_and_distortion.gsb</GridFile>
          <Enabled>true</Enabled>
          <SourceDatum>
            <DatumID>1006</DatumID>
          </SourceDatum>
          <DestinationDatum>
            <DatumID>1028</DatumID>
          </DestinationDatum>
    </NTv2Conversion>
  4. Save the NTv2.xml file back to the jar.
  5. Restart the server.
  6. Notice that the NTv2 Transformation is enabled.