| 129 | |
| 130 | |
| 131 | Addon Addon::loadAddon(const connector::Connector& connector, |
| 132 | const std::string& dimName, const std::string& filename) |
| 133 | { |
| 134 | NL::json info = connector.getJson(filename); |
| 135 | std::string typestring = info["type"].get<std::string>(); |
| 136 | uint64_t size = info["size"].get<uint64_t>(); |
| 137 | Dimension::Type type = Dimension::type(typestring, size); |
| 138 | |
| 139 | return Addon(dimName, filename, type); |
| 140 | } |
| 141 | |
| 142 | } // namespace ept |
| 143 | } // namespace pdal |