Add MultiPolygon support
This commit is contained in:
@@ -38,7 +38,8 @@ struct LocationDependentData
|
||||
void loadLocationDependentData(const boost::filesystem::path &file_path);
|
||||
|
||||
rtree_t rtree;
|
||||
std::vector<std::pair<polygon_t, properties_t>> polygons;
|
||||
std::vector<std::pair<polygon_t, std::size_t>> polygons;
|
||||
std::vector<properties_t> properties;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,8 +76,6 @@ inline void validateFeature(const rapidjson::Value &feature)
|
||||
const auto coord_array = feature["geometry"].GetObject()["coordinates"].GetArray();
|
||||
if (coord_array.Empty())
|
||||
throw osrm::util::exception("Feature geometry coordinates member is empty.");
|
||||
if (!coord_array[0].GetArray()[0].IsArray())
|
||||
throw osrm::util::exception("Feature geometry coordinates array has non-array outer ring.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user