Boost logo

Geometry :

Subject: [geometry] Adapting a model
From: Albert Yiamakis (vkicefire_at_[hidden])
Date: 2014-03-18 13:17:55


Hello,

I 'm looking to adapt a model for use with Boost.Geometry. To start off,
I looked to get the intersects algorithm working with two linestrings -
that fails due to six MPL assertions (unimplemented operation).(note
that my model's linestring cannot be mutable - it should still be
possible to use non-mutating algorithms on it?)

To try to track what's going on, I opted to get it working with the
example model adaptation instead; that fails to compile too, on line 934
of get_turn_info.hpp:

typename strategy::return_type result = strategy::apply(p1, q1);

And I am afraid I cannot tell what is missing.

(In short, I copied the example QPoint and QLineString adaptation and
added a main() calling intersects() - this is what I tried to compile:

https://gist.github.com/Kojirion/9624531

Just one minor correction - changed QPoint::double to double because I
assume that's the intention)

Any clues would be appreciated,

Albert


Geometry list run by mateusz at loskot.net