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
|
||||
#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_;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue