| 101 | } |
| 102 | |
| 103 | void MultiLineString::setGeometry(size_t i, const LineString& line) { |
| 104 | auto n = this->size(); |
| 105 | if (i < n) { |
| 106 | MultiLineString lines; |
| 107 | for (size_t j = 0; j < n; ++j) { |
| 108 | lines.addGeometry((i == j) ? line : this->getGeometry(j)); |
| 109 | } |
| 110 | *this = lines; |
| 111 | return; |
| 112 | } else if (i != n) { |
| 113 | for (size_t j = n; j < i; ++j) { |
| 114 | this->addGeometry(LineString()); |
| 115 | } |
| 116 | } |
| 117 | this->addGeometry(line); |
| 118 | } |
| 119 | |
| 120 | void MultiLineString::addGeometry(const LineString& line) { |
| 121 | this->data_->addGeometry(line.get()); |
nothing calls this directly
no test coverage detected