blob: d1d66740a655579f233dd325d7dbc943aff325d7 [file] [log] [blame]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>WKT (Well-Known Text)</title>
<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="../../../index.html" title="Chapter&#160;1.&#160;Geometry">
<link rel="up" href="../io.html" title="IO (input/output)">
<link rel="prev" href="../io.html" title="IO (input/output)">
<link rel="next" href="wkt/read_wkt.html" title="read_wkt">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../io.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../io.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="wkt/read_wkt.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="geometry.reference.io.wkt"></a><a class="link" href="wkt.html" title="WKT (Well-Known Text)">WKT (Well-Known Text)</a>
</h4></div></div></div>
<div class="toc"><dl class="toc">
<dt><span class="section"><a href="wkt/read_wkt.html">read_wkt</a></span></dt>
<dt><span class="section"><a href="wkt/wkt.html">wkt</a></span></dt>
</dl></div>
<p>
WKT is a general markup format in ASCII. It is described in detail on
<a href="http://en.wikipedia.org/wiki/Well-known_text" target="_top">Wikipedia</a>
</p>
<p>
Boost Geometry supports the common formats (POINT, LINESTRING, POLYGON,
MULTIPOINT, MULTILINESTRING, MULTIPOLYGON).
</p>
<p>
Because Boost.Geometry also supports Box and Segment geometries, which
are not standard OGC geometries, there are some extensions:
</p>
<h6>
<a name="geometry.reference.io.wkt.h0"></a>
<span class="phrase"><a name="geometry.reference.io.wkt.box"></a></span><a class="link" href="wkt.html#geometry.reference.io.wkt.box">Box</a>
</h6>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
can be read from WKT by specifying either a polygon (with 4 points)
or a specific BOX string (non OGC)
</li>
<li class="listitem">
streamed to WKT as a POLYGON
</li>
</ul></div>
<h6>
<a name="geometry.reference.io.wkt.h1"></a>
<span class="phrase"><a name="geometry.reference.io.wkt.segment"></a></span><a class="link" href="wkt.html#geometry.reference.io.wkt.segment">Segment</a>
</h6>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
can be read from WKT by specifying either a linestring (with 2 points)
or a specific SEGMENT string (non OGC)
</li>
<li class="listitem">
streamed to WKT as a LINESTRING
</li>
</ul></div>
<h6>
<a name="geometry.reference.io.wkt.h2"></a>
<span class="phrase"><a name="geometry.reference.io.wkt.ring"></a></span><a class="link" href="wkt.html#geometry.reference.io.wkt.ring">Ring</a>
</h6>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem">
can be read from WKT by specifying a polygon (with no holes)
</li>
<li class="listitem">
streamed to WKT as POLYGON
</li>
</ul></div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 2009-2015 Barend Gehrels, Bruno Lalande,
Mateusz Loskot, Adam Wulkiewicz, Oracle and/or its affiliates<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
</p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../io.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../io.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="wkt/read_wkt.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>