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

Method test_line_string

python/ee/tests/geometry_test.py:171–187  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

169 ee.Geometry.BBox(*coords)
170
171 def test_line_string(self):
172 coords = [1, 2, 3, 4]
173 proj = 'EPSG:4326'
174 max_error = 1000
175 func = ee.ApiFunction.lookup('GeometryConstructors.LineString')
176
177 geometry = ee.Geometry.LineString(coords, proj, True, max_error)
178 self.assertEqual(func, geometry.func)
179 self.assertEqual(
180 {
181 'coordinates': ee.List(coords),
182 'crs': ee.Projection(proj),
183 'geodesic': True,
184 'maxError': ee.ErrorMargin(max_error),
185 },
186 geometry.args,
187 )
188
189 def test_line_string_kwargs(self):
190 coords = [1, 2, 3, 4]

Callers

nothing calls this directly

Calls 2

lookupMethod · 0.80
LineStringMethod · 0.80

Tested by

no test coverage detected