Boost C++ Libraries: Ticket #9066: Add support for MultiPoint WKB format https://svn.boost.org/trac10/ticket/9066 <p> Mats Taraldsvik <a class="ext-link" href="http://lists.boost.org/geometry/2013/08/2479.php"><span class="icon">​</span>posted three patches</a> to the list with <a class="missing wiki">MultiPoint</a> WKB support: </p> <ul><li>0001-Adds-an-equal-check-for-<a class="missing wiki">MultiPoints</a>-with-number-of-p.patch </li><li>0002-Adds-support-for-reading-<a class="missing wiki">MultiPoint</a>-WKB.patch </li><li>0003-Add-tests-for-<a class="missing wiki">MultiPoint</a>-WKB.patch </li></ul><p> Those patches have been generated in Git format against the Git mirros. I have refactored them into SVN format using <a class="ext-link" href="https://gist.github.com/mloskot/6384278"><span class="icon">​</span>simple command</a>. </p> <p> So, here is combined version of Mats' changes in more convenient form ready for review. </p> <p> I also have added Jamfile.v2 files, so it is ready to build and test. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/9066 Trac 1.4.3 Mateusz Loskot Thu, 29 Aug 2013 23:15:18 GMT attachment set https://svn.boost.org/trac10/ticket/9066 https://svn.boost.org/trac10/ticket/9066 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Mats-Taraldsvik-MultiPoint-WKB.patch</span> </li> </ul> <p> Combined patch with Mats' changes generated against SVN trunk <a class="changeset" href="https://svn.boost.org/trac10/changeset/85516" title="1st commit for generator program for numeric_limits tables.">r85516</a> </p> Ticket Mateusz Loskot Thu, 29 Aug 2013 23:27:30 GMT <link>https://svn.boost.org/trac10/ticket/9066#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9066#comment:1</guid> <description> <p> The patch looks good to me. It's a good start for the WKB support for multi-geometries. </p> <p> The read_wkb tests pass: </p> <pre class="wiki">$ cd ~/dev/boost/_svn/trunk/libs/geometry/extensions/test/gis/io/wkb $ b2 ...patience... ...patience... ...found 1506 targets... ...updating 4 targets... gcc.compile.c++ ../../../../../../../bin.v2/libs/geometry/extensions/test/gis/io/wkb/read_wkb.test/gcc-4.8.1/debug/read_wkb.o In file included from ../../../../../../../boost/bind/bind.hpp:29:0, from ../../../../../../../boost/bind.hpp:22, from ../../../../../../../boost/test/impl/framework.ipp:46, from ../../../../../../../boost/test/included/test_exec_monitor.hpp:22, from read_wkb.cpp:14: ../../../../../../../boost/bind/arg.hpp: In constructor ‘boost::arg&lt;I&gt;::arg(const T&amp;)’: ../../../../../../../boost/bind/arg.hpp:37:22: warning: typedef ‘T_must_be_placeholder’ locally defined but not used [-Wunused-local-typedefs] typedef char T_must_be_placeholder[ I == is_placeholder&lt;T&gt;::value? 1: -1 ]; ^ In file included from ../../../../../../../boost/tuple/tuple.hpp:33:0, from ../../../../../../../boost/geometry/policies/relate/tupled.hpp:15, from ../../../../../../../boost/geometry/strategies/intersection.hpp:17, from ../../../../../../../boost/geometry/algorithms/detail/overlay/get_turns.hpp:43, from ../../../../../../../boost/geometry/algorithms/disjoint.hpp:32, from ../../../../../../../boost/geometry/algorithms/num_points.hpp:26, from ../../../../../../../boost/geometry/algorithms/equals.hpp:36, from read_wkb.cpp:19: ../../../../../../../boost/tuple/detail/tuple_basic.hpp: In function ‘typename boost::tuples::access_traits&lt;typename boost::tuples::element&lt;N, boost::tuples::cons&lt;HT, TT&gt; &gt;::type&gt;::const_type boost::tuples::get(const boost::tuples::cons&lt;HT, TT&gt;&amp;)’: ../../../../../../../boost/tuple/detail/tuple_basic.hpp:228:45: warning: typedef ‘cons_element’ locally defined but not used [-Wunused-local-typedefs] typedef BOOST_DEDUCED_TYPENAME impl::type cons_element; ^ In file included from ../../../../../../../boost/geometry/extensions/gis/io/wkb/read_wkb.hpp:18:0, from read_wkb.cpp:22: ../../../../../../../boost/geometry/extensions/gis/io/wkb/detail/parser.hpp: In static member function ‘static bool boost::geometry::detail::wkb::linestring_parser&lt;L&gt;::parse(Iterator&amp;, Iterator, L&amp;, boost::geometry::detail::wkb::byte_order_type::enum_t)’: ../../../../../../../boost/geometry/extensions/gis/io/wkb/detail/parser.hpp:239:46: warning: typedef ‘point_type’ locally defined but not used [-Wunused-local-typedefs] typedef typename point_type&lt;L&gt;::type point_type; ^ read_wkb.cpp: In function ‘int test_main(int, char**)’: read_wkb.cpp:74:47: warning: typedef ‘linestring_type’ locally defined but not used [-Wunused-local-typedefs] typedef bg::model::linestring&lt;point_type&gt; linestring_type; ^ gcc.link ../../../../../../../bin.v2/libs/geometry/extensions/test/gis/io/wkb/read_wkb.test/gcc-4.8.1/debug/read_wkb testing.capture-output ../../../../../../../bin.v2/libs/geometry/extensions/test/gis/io/wkb/read_wkb.test/gcc-4.8.1/debug/read_wkb.run **passed** ../../../../../../../bin.v2/libs/geometry/extensions/test/gis/io/wkb/read_wkb.test/gcc-4.8.1/debug/read_wkb.test ...updated 4 targets... </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Mateusz Loskot</dc:creator> <pubDate>Wed, 23 Oct 2013 21:27:04 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/9066 https://svn.boost.org/trac10/ticket/9066 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Mats-Taraldsvik-MultiPoint-WKB-linestring-test-fixed.patch</span> </li> </ul> <p> This is Mats' patch with missing #include &lt;boost/geometry/strategies/strategies.hpp&gt; added to fix compilation of linestring test case </p> Ticket Mateusz Loskot Thu, 24 Oct 2013 16:00:45 GMT attachment set https://svn.boost.org/trac10/ticket/9066 https://svn.boost.org/trac10/ticket/9066 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Mats-Taraldsvik-MultiPoint-WKB-linestring-test-fixed-polygon-added.patch</span> </li> </ul> <p> Previous version of the patch with polygon test added: compiles using GCC 4.8 and clang 3.3. svn diff against trunk <a class="changeset" href="https://svn.boost.org/trac10/changeset/86415" title="Fix initialization of power series so that we don't get a spurious ...">r86415</a> </p> Ticket mats.taraldsvik@… Sat, 16 Nov 2013 20:06:29 GMT attachment set https://svn.boost.org/trac10/ticket/9066 https://svn.boost.org/trac10/ticket/9066 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Mats-Taraldsvik-AddMultiWKBSupport.patch</span> </li> </ul> <p> Current complete patchset for multigeometry WKB support </p> Ticket mats.taraldsvik@… Sat, 16 Nov 2013 20:07:25 GMT attachment set https://svn.boost.org/trac10/ticket/9066 https://svn.boost.org/trac10/ticket/9066 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Mats-Taraldsvik-AddMultiLineStringMultiPolygonSupport.patch</span> </li> </ul> <p> Add support for <a class="missing wiki">MultiLinestring</a> and <a class="missing wiki">MultiPolygon</a> </p> Ticket mats.taraldsvik@… Sat, 16 Nov 2013 20:09:12 GMT <link>https://svn.boost.org/trac10/ticket/9066#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9066#comment:2</guid> <description> <p> I have implemented support and tests for <a class="missing wiki">MultiLinestring</a> and <a class="missing wiki">MultiPolygon</a> as well, and attached a patch for this, as well as a complete diff for the whole WKB support. I have used the git diff command described in the earlier comment to make it svn compatible. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Mateusz Loskot</dc:creator> <pubDate>Tue, 26 Nov 2013 11:34:28 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/9066 https://svn.boost.org/trac10/ticket/9066 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">complete-extensions-gis-io-wkb-with-multi.patch</span> </li> </ul> <p> Updated last patch from Mats with WKB support for simple and multi-geometries. Added Jamfile.v2 files, fixed compiler warnings and added TODO comment. </p> Ticket Mateusz Loskot Wed, 02 Mar 2016 20:32:39 GMT <link>https://svn.boost.org/trac10/ticket/9066#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/9066#comment:3</guid> <description> <p> This ticket can be considered addressed by this PR <a class="ext-link" href="https://github.com/boostorg/geometry/pull/322"><span class="icon">​</span>https://github.com/boostorg/geometry/pull/322</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>