|
Geometry : |
Subject: [ggl] [intersection] error when "out" point_type different than "in" point_type
From: Chris Browet (cbro)
Date: 2009-06-19 05:45:06
Hi,
While compiling this:
std::vector<linestring_2d> clipped;
> intersection <linestring_2d, box_2d,
> std::vector<TrackPointPtr>, std::back_insert_iterator
> <std::vector<linestring_2d> > >
> (clipRect, p->Nodes, std::back_inserter(clipped));
>
I receive this error:
../include/ggl/algorithms/intersection_linestring.hpp:201: error: no
> matching function for call to
> 'ggl::strategy::intersection::liang_barsky<ggl::box<ggl::point_xy<double,
> ggl::cs::cartesian> >, TrackPoint*>::clip_segment(const
> ggl::box<ggl::point_xy<double, ggl::cs::cartesian> >&,
> ggl::segment<ggl::point_xy<double, ggl::cs::cartesian> >&, bool&, bool&)
> const'
> ../include/ggl/algorithms/intersection_linestring.hpp:76: note: candidates
> are: bool ggl::strategy::intersection::liang_barsky<B,
> P>::clip_segment(const B&, ggl::segment<P>&, bool&, bool&) const [with B =
> ggl::box<ggl::point_xy<double, ggl::cs::cartesian> >, P = TrackPoint*]
under GCC
and this
Error 17 error C2664:
> 'ggl::strategy::intersection::liang_barsky<B,P>::clip_segment' : cannot
> convert parameter 2 from 'ggl::segment<P>' to 'ggl::segment<P> &'
> c:\home\cbrowet\src\merkaartor-0.14\include\ggl\algorithms\intersection_linestring.hpp
> 201 merkaartor
under MSVC.
Any idea? This is probably related to the recent possibility to have the
output type different than the input one.
In "clip_linestring_with_box", it would look like there is a mismatch
between the out point_type and the in point_type, but I'm lost in the
code...
- Chris -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/ggl/attachments/20090619/f11d1b3b/attachment.html
Geometry list run by mateusz at loskot.net