Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > 1113753f4f1993337154e9a221eac889 > files > 86

geotiff-1.2.5-9.mga5.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>libgeotiff: xtiffio.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">libgeotiff
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xtiffio.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;tiffio.h&quot;</code><br />
<code>#include &quot;geo_config.h&quot;</code><br />
</div>
<p><a href="xtiffio_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a670c1fbcfd377adea5be6e99181fbf2c"><td class="memItemLeft" align="right" valign="top">void CPL_DLL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtiffio_8h.html#a670c1fbcfd377adea5be6e99181fbf2c">XTIFFInitialize</a> ()</td></tr>
<tr class="separator:a670c1fbcfd377adea5be6e99181fbf2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0191e91b25f6a5f3f00806be37bf96c4"><td class="memItemLeft" align="right" valign="top">TIFF CPL_DLL *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtiffio_8h.html#a0191e91b25f6a5f3f00806be37bf96c4">XTIFFOpen</a> (const char *name, const char *mode)</td></tr>
<tr class="separator:a0191e91b25f6a5f3f00806be37bf96c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fa88015726dd9c805368e7623d7e86a"><td class="memItemLeft" align="right" valign="top">void CPL_DLL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xtiffio_8h.html#a9fa88015726dd9c805368e7623d7e86a">XTIFFClose</a> (TIFF *tif)</td></tr>
<tr class="separator:a9fa88015726dd9c805368e7623d7e86a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Definitions relating GeoTIFF functions from <a class="el" href="geotiff_8h.html">geotiff.h</a> to the TIFF library (usually libtiff). </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a9fa88015726dd9c805368e7623d7e86a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CPL_DLL XTIFFClose </td>
          <td>(</td>
          <td class="paramtype">TIFF *&#160;</td>
          <td class="paramname"><em>tif</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Close a file opened with <a class="el" href="xtiffio_8h.html#a0191e91b25f6a5f3f00806be37bf96c4">XTIFFOpen()</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tif</td><td>The file handle returned by <a class="el" href="xtiffio_8h.html#a0191e91b25f6a5f3f00806be37bf96c4">XTIFFOpen()</a>.</td></tr>
  </table>
  </dd>
</dl>
<p>If a GTIF structure was created with <a class="el" href="geotiff_8h.html#a67d3b43f2a73c0129f8346804e2d038c">GTIFNew()</a> for this file, it should be freed with <a class="el" href="geotiff_8h.html#ac9c0043c33ec4e16361d61e1ed79e96f">GTIFFree()</a> <em>before</em> calling <a class="el" href="xtiffio_8h.html#a9fa88015726dd9c805368e7623d7e86a">XTIFFClose()</a>. </p>

</div>
</div>
<a class="anchor" id="a670c1fbcfd377adea5be6e99181fbf2c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CPL_DLL XTIFFInitialize </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Registers an extension with libtiff for adding GeoTIFF tags. After this one-time intialization, any TIFF open function may be called in the usual manner to create a TIFF file that compatible with libgeotiff. The XTIFF open functions are simply for convenience: they call this and then pass their parameters on to the appropriate TIFF open function.</p>
<p>This function may be called any number of times safely, since it will only register the extension the first time it is called. </p>

</div>
</div>
<a class="anchor" id="a0191e91b25f6a5f3f00806be37bf96c4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">TIFF CPL_DLL* XTIFFOpen </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>GeoTIFF compatible TIFF file open function.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>The filename of a TIFF file to open. </td></tr>
    <tr><td class="paramname">mode</td><td>The open mode ("r", "w" or "a").</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a TIFF * for the file, or NULL if the open failed.</dd></dl>
<p>This function is used to open GeoTIFF files instead of TIFFOpen() from libtiff. Internally it calls TIFFOpen(), but sets up some extra hooks so that GeoTIFF tags can be extracted from the file. If <a class="el" href="xtiffio_8h.html#a0191e91b25f6a5f3f00806be37bf96c4">XTIFFOpen()</a> isn't used, <a class="el" href="geotiff_8h.html#a67d3b43f2a73c0129f8346804e2d038c">GTIFNew()</a> won't work properly. Files opened with <a class="el" href="xtiffio_8h.html#a0191e91b25f6a5f3f00806be37bf96c4">XTIFFOpen()</a> should be closed with <a class="el" href="xtiffio_8h.html#a9fa88015726dd9c805368e7623d7e86a">XTIFFClose()</a>.</p>
<p>The name of the file to be opened should be passed as <b>name</b>, and an opening mode ("r", "w" or "a") acceptable to TIFFOpen() should be passed as the <b>mode</b>.</p>
<p>If <a class="el" href="xtiffio_8h.html#a0191e91b25f6a5f3f00806be37bf96c4">XTIFFOpen()</a> fails it will return NULL. Otherwise, normal TIFFOpen() error reporting steps will have already taken place.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Oct 16 2014 11:17:58 for libgeotiff by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>