shapeindex - make index node 32-bytes (uint64_t, int32_t, int32_t)
This commit is contained in:
parent
541c1a35a0
commit
d81a7610d3
3 changed files with 6 additions and 5 deletions
|
@ -87,7 +87,7 @@ feature_ptr shape_index_featureset<filterT>::next()
|
|||
|
||||
while ( itr_ != offsets_.end())
|
||||
{
|
||||
int offset = itr_->offset;
|
||||
std::uint64_t offset = itr_->offset;
|
||||
shape_ptr_->move_to(offset);
|
||||
std::vector<std::pair<int,int>> parts;
|
||||
while (itr_ != offsets_.end() && itr_->offset == offset)
|
||||
|
|
|
@ -50,13 +50,13 @@ namespace mapnik { namespace detail
|
|||
struct node
|
||||
{
|
||||
node() = default;
|
||||
node(int offset_, int start_, int end_)
|
||||
node(std::uint64_t offset_, std::int32_t start_, std::int32_t end_)
|
||||
: offset(offset_),
|
||||
start(start_),
|
||||
end(end_) {}
|
||||
int offset;
|
||||
int start;
|
||||
int end;
|
||||
std::uint64_t offset;
|
||||
std::int32_t start;
|
||||
std::int32_t end;
|
||||
};
|
||||
}} // ns
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include <mapnik/version.hpp>
|
||||
#include <mapnik/util/fs.hpp>
|
||||
#include <mapnik/quad_tree.hpp>
|
||||
#include <mapnik/util/spatial_index.hpp>
|
||||
#include <mapnik/geometry/envelope.hpp>
|
||||
#include "shapefile.hpp"
|
||||
#include "shape_io.hpp"
|
||||
|
|
Loading…
Reference in a new issue