TIFFresampleToCRStoJP2.smlb

  Download

More scripts: Raster

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
<?xml version="1.0"?>
<SML>
  <Version>1.8</Version>
  <ScrollH>0</ScrollH>
  <ScrollV>0</ScrollV>
  <class>
    <name>sr_coordrefsys</name>
    <classname>SR_COORDREFSYS</classname>
    <rect>
      <xinit>41</xinit>
      <yinit>333</yinit>
      <xlast>230</xlast>
      <ylast>462</ylast>
    </rect>
    <minimized>1</minimized>
    <order>4</order>
    <comments></comments>
    <func>
      <name>SR_COORDREFSYS</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>str</parm>
        <value>"12449"</value>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>SR_COORDREFSYS</func>
        <connect>
          <builderparent>resample</builderparent>
          <funcparent>IMAGE_PIPELINE_FILTER_RESAMPLE</funcparent>
          <num>2</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>SR_COORDREFSYS</func>
      </outputconnect>
      <outputconnect>
        <num>3</num>
        <func>SR_COORDREFSYS</func>
      </outputconnect>
      <outputconnect>
        <num>4</num>
        <func>SR_COORDREFSYS</func>
      </outputconnect>
    </func>
    <func>
      <name>_$</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
      </inputconnect>
      <outputconnect>
        <num>1</num>
      </outputconnect>
      <outputconnect>
        <num>2</num>
      </outputconnect>
      <outputconnect>
        <num>3</num>
      </outputconnect>
    </func>
    <func>
      <name>CoordOpDef</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
      </inputconnect>
      <outputconnect>
        <num>1</num>
      </outputconnect>
      <outputconnect>
        <num>2</num>
      </outputconnect>
      <outputconnect>
        <num>3</num>
      </outputconnect>
    </func>
    <func>
      <name>CoordSys</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
      </inputconnect>
      <outputconnect>
        <num>1</num>
      </outputconnect>
      <outputconnect>
        <num>2</num>
      </outputconnect>
      <outputconnect>
        <num>3</num>
      </outputconnect>
    </func>
    <func>
      <name>Datum</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
      </inputconnect>
      <outputconnect>
        <num>1</num>
      </outputconnect>
      <outputconnect>
        <num>2</num>
      </outputconnect>
      <outputconnect>
        <num>3</num>
      </outputconnect>
    </func>
    <func>
      <name>Name</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
      </inputconnect>
      <outputconnect>
        <num>1</num>
      </outputconnect>
      <outputconnect>
        <num>2</num>
      </outputconnect>
      <outputconnect>
        <num>3</num>
      </outputconnect>
    </func>
    <func>
      <name>XMLString</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
      </inputconnect>
      <outputconnect>
        <num>1</num>
      </outputconnect>
      <outputconnect>
        <num>2</num>
      </outputconnect>
      <outputconnect>
        <num>3</num>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>resample</name>
    <classname>IMAGE_PIPELINE_FILTER_RESAMPLE</classname>
    <rect>
      <xinit>355</xinit>
      <yinit>262</yinit>
      <xlast>553</xlast>
      <ylast>377</ylast>
    </rect>
    <minimized>1</minimized>
    <order>5</order>
    <comments></comments>
    <func>
      <name>IMAGE_PIPELINE_FILTER_RESAMPLE</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>InputStage</parm>
        <connect>
          <builderparent>tiff</builderparent>
          <funcparent>IMAGE_PIPELINE_SOURCE_TIFF</funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <inputconnect>
        <num>2</num>
        <parm>RefSys</parm>
        <connect>
          <builderparent>sr_coordrefsys</builderparent>
          <funcparent>SR_COORDREFSYS</funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <inputconnect>
        <num>3</num>
        <parm>LineScale</parm>
        <value>1</value>
      </inputconnect>
      <inputconnect>
        <num>4</num>
        <parm>ColumnScale</parm>
        <value>1</value>
      </inputconnect>
      <inputconnect>
        <num>5</num>
        <parm>ResampleMethod</parm>
        <value>Bicubic</value>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>IMAGE_PIPELINE_FILTER_RESAMPLE</func>
        <connect>
          <builderparent>j2k</builderparent>
          <funcparent>IMAGE_PIPELINE_TARGET_J2K</funcparent>
          <num>1</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>IMAGE_PIPELINE_FILTER_RESAMPLE</func>
      </outputconnect>
      <outputconnect>
        <num>3</num>
        <func>IMAGE_PIPELINE_FILTER_RESAMPLE</func>
      </outputconnect>
      <outputconnect>
        <num>4</num>
        <func>IMAGE_PIPELINE_FILTER_RESAMPLE</func>
      </outputconnect>
    </func>
    <func>
      <name>Initialize</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <outputconnect>
        <num>1</num>
        <func>Initialize</func>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>Initialize</func>
      </outputconnect>
      <outputconnect>
        <num>3</num>
        <func>Initialize</func>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>tiff</name>
    <classname>IMAGE_PIPELINE_SOURCE_TIFF</classname>
    <rect>
      <xinit>183</xinit>
      <yinit>246</yinit>
      <xlast>332</xlast>
      <ylast>305</ylast>
    </rect>
    <minimized>1</minimized>
    <order>3</order>
    <comments></comments>
    <func>
      <name>IMAGE_PIPELINE_SOURCE_TIFF</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>Filepath</parm>
        <connect>
          <builderparent>filepath</builderparent>
          <funcparent>FILEPATH</funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>IMAGE_PIPELINE_SOURCE_TIFF</func>
        <connect>
          <builderparent>resample</builderparent>
          <funcparent>IMAGE_PIPELINE_FILTER_RESAMPLE</funcparent>
          <num>1</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>IMAGE_PIPELINE_SOURCE_TIFF</func>
      </outputconnect>
      <outputconnect>
        <num>3</num>
        <func>IMAGE_PIPELINE_SOURCE_TIFF</func>
      </outputconnect>
      <outputconnect>
        <num>4</num>
        <func>IMAGE_PIPELINE_SOURCE_TIFF</func>
      </outputconnect>
    </func>
    <func>
      <name>Initialize</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <outputconnect>
        <num>1</num>
        <func>Initialize</func>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>Initialize</func>
      </outputconnect>
      <outputconnect>
        <num>3</num>
        <func>Initialize</func>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>filepath</name>
    <classname>FILEPATH</classname>
    <rect>
      <xinit>116</xinit>
      <yinit>176</yinit>
      <xlast>286</xlast>
      <ylast>236</ylast>
    </rect>
    <minimized>1</minimized>
    <order>2</order>
    <comments></comments>
    <func>
      <name>FILEPATH</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>str</parm>
        <connect>
          <builderparent>str_1</builderparent>
          <funcparent></funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>FILEPATH</func>
        <connect>
          <builderparent>tiff</builderparent>
          <funcparent>IMAGE_PIPELINE_SOURCE_TIFF</funcparent>
          <num>1</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>FILEPATH</func>
      </outputconnect>
      <outputconnect>
        <num>3</num>
        <func>FILEPATH</func>
      </outputconnect>
      <outputconnect>
        <num>4</num>
        <func>FILEPATH</func>
      </outputconnect>
    </func>
    <func>
      <name>_$</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
      </inputconnect>
      <outputconnect>
        <num>1</num>
      </outputconnect>
      <outputconnect>
        <num>2</num>
      </outputconnect>
      <outputconnect>
        <num>3</num>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>str_1</name>
    <symbolname>GetInputFileName</symbolname>
    <rect>
      <xinit>5</xinit>
      <yinit>102</yinit>
      <xlast>231</xlast>
      <ylast>167</ylast>
    </rect>
    <minimized>1</minimized>
    <order>1</order>
    <comments></comments>
    <func>
      <name></name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>default$</parm>
        <value>c:/data/</value>
      </inputconnect>
      <inputconnect>
        <num>2</num>
        <parm>prompt$</parm>
        <value>Choose input TIFF:</value>
      </inputconnect>
      <inputconnect>
        <num>3</num>
        <parm>ext$</parm>
        <value>.tif</value>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>GetInputFileName</func>
        <connect>
          <builderparent>filepath</builderparent>
          <funcparent>FILEPATH</funcparent>
          <num>1</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>GetInputFileName</func>
      </outputconnect>
      <outputconnect>
        <num>3</num>
        <func>GetInputFileName</func>
      </outputconnect>
      <outputconnect>
        <num>4</num>
        <func>GetInputFileName</func>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>j2k</name>
    <classname>IMAGE_PIPELINE_TARGET_J2K</classname>
    <rect>
      <xinit>692</xinit>
      <yinit>283</yinit>
      <xlast>869</xlast>
      <ylast>413</ylast>
    </rect>
    <minimized>1</minimized>
    <order>9</order>
    <comments></comments>
    <func>
      <name>IMAGE_PIPELINE_TARGET_J2K</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>InputStage</parm>
        <connect>
          <builderparent>resample</builderparent>
          <funcparent>IMAGE_PIPELINE_FILTER_RESAMPLE</funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <inputconnect>
        <num>2</num>
        <parm>filepath</parm>
        <connect>
          <builderparent>filepath_1</builderparent>
          <funcparent>FILEPATH</funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <inputconnect>
        <num>3</num>
        <parm>settings</parm>
        <connect>
          <builderparent>j2k_settings</builderparent>
          <funcparent>IMAGE_PIPELINE_TARGET_J2K_SETTINGS</funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <inputconnect>
        <num>4</num>
        <parm>geoformat</parm>
        <value>ArcWorld</value>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>IMAGE_PIPELINE_TARGET_J2K</func>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>IMAGE_PIPELINE_TARGET_J2K</func>
      </outputconnect>
      <outputconnect>
        <num>3</num>
        <func>IMAGE_PIPELINE_TARGET_J2K</func>
      </outputconnect>
    </func>
    <func>
      <name>Initialize</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <outputconnect>
        <num>1</num>
        <func>Initialize</func>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>Initialize</func>
      </outputconnect>
      <outputconnect>
        <num>3</num>
        <func>Initialize</func>
      </outputconnect>
    </func>
    <func>
      <name>Process</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>ShowStatus</parm>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>Process</func>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>Process</func>
      </outputconnect>
      <outputconnect>
        <num>3</num>
        <func>Process</func>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>filepath_1</name>
    <classname>FILEPATH</classname>
    <rect>
      <xinit>453</xinit>
      <yinit>391</yinit>
      <xlast>630</xlast>
      <ylast>451</ylast>
    </rect>
    <minimized>1</minimized>
    <order>7</order>
    <comments></comments>
    <func>
      <name>FILEPATH</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>str</parm>
        <connect>
          <builderparent>str_2</builderparent>
          <funcparent></funcparent>
          <num>1</num>
        </connect>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>FILEPATH</func>
        <connect>
          <builderparent>j2k</builderparent>
          <funcparent>IMAGE_PIPELINE_TARGET_J2K</funcparent>
          <num>2</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>FILEPATH</func>
      </outputconnect>
      <outputconnect>
        <num>3</num>
        <func>FILEPATH</func>
      </outputconnect>
      <outputconnect>
        <num>4</num>
        <func>FILEPATH</func>
      </outputconnect>
    </func>
    <func>
      <name>_$</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
      </inputconnect>
      <outputconnect>
        <num>1</num>
      </outputconnect>
      <outputconnect>
        <num>2</num>
      </outputconnect>
      <outputconnect>
        <num>3</num>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>str_2</name>
    <symbolname>GetOutputFileName</symbolname>
    <rect>
      <xinit>201</xinit>
      <yinit>478</yinit>
      <xlast>427</xlast>
      <ylast>544</ylast>
    </rect>
    <minimized>1</minimized>
    <order>6</order>
    <comments></comments>
    <func>
      <name></name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>default$</parm>
        <value>c:/data/</value>
      </inputconnect>
      <inputconnect>
        <num>2</num>
        <parm>prompt$</parm>
        <value>Choose output J2K:</value>
      </inputconnect>
      <inputconnect>
        <num>3</num>
        <parm>ext$</parm>
        <value>.j2k</value>
      </inputconnect>
      <outputconnect>
        <num>1</num>
        <func>GetOutputFileName</func>
        <connect>
          <builderparent>filepath_1</builderparent>
          <funcparent>FILEPATH</funcparent>
          <num>1</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>GetOutputFileName</func>
      </outputconnect>
      <outputconnect>
        <num>3</num>
        <func>GetOutputFileName</func>
      </outputconnect>
      <outputconnect>
        <num>4</num>
        <func>GetOutputFileName</func>
      </outputconnect>
    </func>
  </class>
  <class>
    <name>j2k_settings</name>
    <classname>IMAGE_PIPELINE_TARGET_J2K_SETTINGS</classname>
    <rect>
      <xinit>463</xinit>
      <yinit>473</yinit>
      <xlast>638</xlast>
      <ylast>563</ylast>
    </rect>
    <minimized>1</minimized>
    <order>8</order>
    <comments></comments>
    <func>
      <name>IMAGE_PIPELINE_TARGET_J2K_SETTINGS</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <outputconnect>
        <num>1</num>
        <func>IMAGE_PIPELINE_TARGET_J2K_SETTINGS</func>
        <connect>
          <builderparent>j2k</builderparent>
          <funcparent>IMAGE_PIPELINE_TARGET_J2K</funcparent>
          <num>3</num>
        </connect>
      </outputconnect>
      <outputconnect>
        <num>2</num>
        <func>IMAGE_PIPELINE_TARGET_J2K_SETTINGS</func>
      </outputconnect>
      <outputconnect>
        <num>3</num>
        <func>IMAGE_PIPELINE_TARGET_J2K_SETTINGS</func>
      </outputconnect>
      <outputconnect>
        <num>4</num>
        <func>IMAGE_PIPELINE_TARGET_J2K_SETTINGS</func>
      </outputconnect>
    </func>
    <func>
      <name>SetReversible</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>reversible</parm>
        <value>0</value>
      </inputconnect>
    </func>
    <func>
      <name>SetTargetRatio</name>
      <ReportError>0</ReportError>
      <ReportStatus>0</ReportStatus>
      <inputconnect>
        <num>1</num>
        <parm>TargetRatio</parm>
        <value>12</value>
      </inputconnect>
    </func>
  </class>
</SML>