MCPcopy Create free account
hub / github.com/comaps/comaps / __next__

Method __next__

tools/python/mwm/mwm_python.py:153–162  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 return self
152
153 def __next__(self) -> "FeaturePython":
154 if self.end <= self.pos:
155 raise StopIteration
156
157 self.mwm.file.seek(self.pos)
158 feature_size = read_varuint(self.mwm.file)
159 self.pos = self.mwm.file.tell() + feature_size
160 feature = FeaturePython(self.mwm, self.index)
161 self.index += 1
162 return feature
163
164
165class GeomType:

Callers

nothing calls this directly

Calls 2

read_varuintFunction · 0.85
FeaturePythonClass · 0.85

Tested by

no test coverage detected