MCPcopy
hub / github.com/google/earthengine-api / _convert_to_records

Method _convert_to_records

python/ee/table_converter.py:26–33  ·  view source on GitHub ↗
(
      self, features: Iterator[Any]
  )

Source from the content-addressed store, hash-verified

24 return pandas.DataFrame.from_records(self._convert_to_records(features))
25
26 def _convert_to_records(
27 self, features: Iterator[Any]
28 ) -> Iterator[dict[str, Any]]:
29 for feature in features:
30 yield {
31 'geo': feature.get('geometry'),
32 **(feature.get('properties', {}) or {}),
33 }
34
35
36class GeoPandasConverter(TableConverter):

Callers 1

do_conversionMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected