Boost logo

Geometry :

Subject: Re: [geometry] Integrating OGR library with Boost.Geometry
From: Eric MSP Veith (eveith_at_[hidden])
Date: 2015-05-26 08:00:28


Hello Menelaos,

On Tuesday 26 May 2015 14:47:20, Menelaos Karavelas
<menelaos.karavelas_at_[hidden]> wrote:
> Yes, this IS the correct way. You need to specialize various
> metafunctions in bg::traits namespace so that things work.
> Please keep up posted about this.

ok, good to know. I've followed this path and provided template
specializations for clear, resize, and push_back. The test program you
supplied now compiles, but gives a rather surprising result:

geometry: LINESTRING(1 1,2 2,3 3,4 4,9 9)
points: (1, 1) (2, 2) (3, 3) (4, 4) (9, 9)
segments: ((2.0872e-317, 6.95257e-310), (6.91222e-310, 6.91222e-310))
((2.0872e-317, 6.95257e-310), (6.91222e-310, 6.91222e-310)) ((2.0872e-317,
6.95257e-310), (6.91222e-310, 6.91222e-310)) ((2.0872e-317, 6.95257e-310),
(6.91222e-310, 6.91222e-310))

The values of the last line change with each run, but never much, i.e., the
value left to the dot remains the same.

Do I need to provide a separate segment iterator...?

Thanks
Eric



Geometry list run by mateusz at loskot.net