memory_feature - update to use mapnik-geometry
This commit is contained in:
parent
914b8dbd76
commit
6ef63aa7a5
1 changed files with 6 additions and 10 deletions
|
@ -25,7 +25,8 @@
|
||||||
|
|
||||||
// mapnik
|
// mapnik
|
||||||
#include <mapnik/box2d.hpp>
|
#include <mapnik/box2d.hpp>
|
||||||
#include <mapnik/geometry.hpp>
|
#include <mapnik/geometry_impl.hpp>
|
||||||
|
#include <mapnik/geometry_envelope.hpp>
|
||||||
#include <mapnik/featureset.hpp>
|
#include <mapnik/featureset.hpp>
|
||||||
#include <mapnik/datasource.hpp>
|
#include <mapnik/datasource.hpp>
|
||||||
#include <mapnik/memory_datasource.hpp>
|
#include <mapnik/memory_datasource.hpp>
|
||||||
|
@ -77,17 +78,12 @@ public:
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// FIXME
|
|
||||||
/*
|
new_geometry::geometry const& geom = (*pos_)->get_geometry();
|
||||||
for (std::size_t i=0; i<(*pos_)->num_geometries();++i)
|
if (bbox_.intersects(new_geometry::envelope(geom)))
|
||||||
{
|
{
|
||||||
geometry_type const& geom = (*pos_)->get_geometry(i);
|
return *pos_++;
|
||||||
if (bbox_.intersects(::mapnik::envelope(geom)))
|
|
||||||
{
|
|
||||||
return *pos_++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
++pos_;
|
++pos_;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue