<!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"/> <title>GEOS: geos::io::WKBReader Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"> <ul> <li><a class="el" href="namespacegeos.html">geos</a> </li> <li><a class="el" href="namespacegeos_1_1io.html">io</a> </li> <li><a class="el" href="classgeos_1_1io_1_1WKBReader.html">geos::io::WKBReader</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pub-static-methods">Static Public Member Functions</a> </div> <div class="headertitle"> <h1>geos::io::WKBReader Class Reference</h1> </div> </div> <div class="contents"> <!-- doxytag: class="geos::io::WKBReader" --> <p>Reads a Geometry from Well-Known Binary format. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="io_8h_source.html">geos.h</a>></code></p> <p><a href="classgeos_1_1io_1_1WKBReader-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab29ae1d03829ce468eb22d06a19f511e"></a><!-- doxytag: member="geos::io::WKBReader::WKBReader" ref="ab29ae1d03829ce468eb22d06a19f511e" args="(geom::GeometryFactory const &f)" --> </td><td class="memItemRight" valign="bottom"><b>WKBReader</b> (<a class="el" href="classgeos_1_1geom_1_1GeometryFactory.html">geom::GeometryFactory</a> const &f)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5f2ba1c9f4e813d361dcde35aee7c0a2"></a><!-- doxytag: member="geos::io::WKBReader::WKBReader" ref="a5f2ba1c9f4e813d361dcde35aee7c0a2" args="()" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1io_1_1WKBReader.html#a5f2ba1c9f4e813d361dcde35aee7c0a2">WKBReader</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Inizialize parser with default GeometryFactory. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1io_1_1WKBReader.html#a792f5c0a72ee0e2d7ca5362b09461d0f">read</a> (std::istream &is)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Reads a Geometry from an istream. <a href="#a792f5c0a72ee0e2d7ca5362b09461d0f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1io_1_1WKBReader.html#a3301dd537f58cbf49d30388444300906">readHEX</a> (std::istream &is)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Reads a Geometry from an istream in hex format. <a href="#a3301dd537f58cbf49d30388444300906"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-static-methods"></a> Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static std::ostream & </td><td class="memItemRight" valign="bottom"><a class="el" href="classgeos_1_1io_1_1WKBReader.html#aadd3ba747a9ac594f911a0b700716eb0">printHEX</a> (std::istream &is, std::ostream &os)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Print WKB in HEX form to out stream. <a href="#aadd3ba747a9ac594f911a0b700716eb0"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Reads a Geometry from Well-Known Binary format. </p> <p>This class is designed to support reuse of a single instance to read multiple geometries. This class is not thread-safe; each thread should create its own instance.</p> <p>The Well-known Binary format is defined in the <a href="http://www.opengis.org/techno/specs.htm">OpenGIS Simple Features Specification for SQL</a>. This implementation supports the extended WKB standard which allows representing 3-dimensional coordinates. </p> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="aadd3ba747a9ac594f911a0b700716eb0"></a><!-- doxytag: member="geos::io::WKBReader::printHEX" ref="aadd3ba747a9ac594f911a0b700716eb0" args="(std::istream &is, std::ostream &os)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static std::ostream& geos::io::WKBReader::printHEX </td> <td>(</td> <td class="paramtype">std::istream & </td> <td class="paramname"> <em>is</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">std::ostream & </td> <td class="paramname"> <em>os</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Print WKB in HEX form to out stream. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>is</em> </td><td>is the stream to read from </td></tr> <tr><td valign="top"></td><td valign="top"><em>os</em> </td><td>is the stream to write to </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a792f5c0a72ee0e2d7ca5362b09461d0f"></a><!-- doxytag: member="geos::io::WKBReader::read" ref="a792f5c0a72ee0e2d7ca5362b09461d0f" args="(std::istream &is)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* geos::io::WKBReader::read </td> <td>(</td> <td class="paramtype">std::istream & </td> <td class="paramname"> <em>is</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Reads a Geometry from an istream. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>is</em> </td><td>the stream to read from </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the Geometry read </dd></dl> <dl><dt><b>Exceptions:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>IOException</em> </td><td></td></tr> <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classgeos_1_1io_1_1ParseException.html" title="Notifies a parsing error.">ParseException</a></em> </td><td></td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a3301dd537f58cbf49d30388444300906"></a><!-- doxytag: member="geos::io::WKBReader::readHEX" ref="a3301dd537f58cbf49d30388444300906" args="(std::istream &is)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classgeos_1_1geom_1_1Geometry.html">geom::Geometry</a>* geos::io::WKBReader::readHEX </td> <td>(</td> <td class="paramtype">std::istream & </td> <td class="paramname"> <em>is</em></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Reads a Geometry from an istream in hex format. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>is</em> </td><td>the stream to read from </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>the Geometry read </dd></dl> <dl><dt><b>Exceptions:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>IOException</em> </td><td></td></tr> <tr><td valign="top"></td><td valign="top"><em><a class="el" href="classgeos_1_1io_1_1ParseException.html" title="Notifies a parsing error.">ParseException</a></em> </td><td></td></tr> </table> </dd> </dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="WKBReader_8h_source.html">WKBReader.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Thu Jul 22 2010 for GEOS by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address> </body> </html>