Boost logo

Geometry :

Subject: Re: [geometry] Compile error when trying to calculate length of linestring
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2013-09-21 13:06:36


Hi Mats,

Just quick reply to this and your older message about reviewing WKB
parser compilation errors.
I'm not able to help until next weekend, after 27th of Sept.
Then, I will do my best to help with the WKB.

Regards,
Mat

On 21 September 2013 16:08, Mats Taraldsvik <mats.taraldsvik_at_[hidden]> wrote:
> Hi,
>
> I'm trying to add some Linestring tests for reading WKB, however, I get
> compile errors when trying to check the equality of the linestrings. If I
> swap the trivialcheck with num_points, it runs fine.
>
> Calculating the length of a linestring in the example code in the reference
> [1] works fine, so I don't know exactly what the issue might be...
>
> The errors appear when I try to add the following line to
> extensions/test/gis/io/wkb/read_wkb.cpp
>
> typedef bg::model::linestring<point_type> linestring_type;
>
> test_geometry_equals<linestring_type, true>(
> "0102000000030000005839B4C876BEF33F83C0CAA145B616404F401361C333224062A1D634EF3824409CC420B072482A40EB73B515FB2B3040",
> "LINESTRING (1.234 5.678, 9.1011 10.1112, 13.1415 16.1718)");
>
> The compile errors for both gcc and clang are attached.
>
> [1]
> http://www.boost.org/doc/libs/1_54_0/libs/geometry/doc/html/geometry/reference/algorithms/length/length_1.html
>
> Regards,
> Mats Taraldsvik
>
> _______________________________________________
> Geometry mailing list
> Geometry_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/geometry
>

-- 
Mateusz  Loskot, http://mateusz.loskot.net
"Participation in this whole process is a form of torture" ~~ Szalony

Geometry list run by mateusz at loskot.net