fix compile error when building without memory mapped shapefiles - problem since r2194
This commit is contained in:
parent
61940db92f
commit
69ade9ab35
2 changed files with 5 additions and 1 deletions
|
@ -46,7 +46,11 @@ shape_index_featureset<filterT>::shape_index_featureset(const filterT& filter,
|
|||
boost::shared_ptr<shape_file> index = shape_.index();
|
||||
if (index)
|
||||
{
|
||||
#ifdef SHAPE_MEMORY_MAPPED_FILE
|
||||
shp_index<filterT,stream<mapped_file_source> >::query(filter,index->file(),ids_);
|
||||
#else
|
||||
shp_index<filterT,stream<file_source> >::query(filter,index->file(),ids_);
|
||||
#endif
|
||||
}
|
||||
std::sort(ids_.begin(),ids_.end());
|
||||
|
||||
|
|
|
@ -141,7 +141,7 @@ public:
|
|||
typedef shape_record<RecordTag> record_type;
|
||||
#endif
|
||||
|
||||
file_source_type file_;
|
||||
file_source_type file_;
|
||||
shape_file() {}
|
||||
|
||||
shape_file(std::string const& file_name)
|
||||
|
|
Loading…
Add table
Reference in a new issue