|
Geometry : |
Subject: [geometry] Compile error when trying to calculate length of linestring
From: Mats Taraldsvik (mats.taraldsvik_at_[hidden])
Date: 2013-09-21 11:08:44
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.
Regards,
Mats Taraldsvik
Geometry list run by mateusz at loskot.net