memory_feature - update to use mapnik-geometry

This commit is contained in:
artemp 2015-03-13 11:05:56 +01:00
parent 914b8dbd76
commit 6ef63aa7a5

View file

@ -25,7 +25,8 @@
// mapnik
#include <mapnik/box2d.hpp>
#include <mapnik/geometry.hpp>
#include <mapnik/geometry_impl.hpp>
#include <mapnik/geometry_envelope.hpp>
#include <mapnik/featureset.hpp>
#include <mapnik/datasource.hpp>
#include <mapnik/memory_datasource.hpp>
@ -77,18 +78,13 @@ public:
}
else
{
// FIXME
/*
for (std::size_t i=0; i<(*pos_)->num_geometries();++i)
{
geometry_type const& geom = (*pos_)->get_geometry(i);
if (bbox_.intersects(::mapnik::envelope(geom)))
new_geometry::geometry const& geom = (*pos_)->get_geometry();
if (bbox_.intersects(new_geometry::envelope(geom)))
{
return *pos_++;
}
}
*/
}
++pos_;
}
}