Argument confusion when constructing a Polygon
See original GitHub issueWhen trying to create a polygon, works fine with the coords
argument by itself, but when adding an extra keyword argument, such as geodesic
, it throws an error:
EEException: Projection: Argument ‘crs’: Invalid type. Expected: String. Actual: Type<Boolean>.
I think the issue may come from https://github.com/google/earthengine-api/blob/ba57b055e1db6e0839ea9a26149e78c13ab5a73b/python/ee/geometry.py#L703 and https://github.com/google/earthengine-api/blob/ba57b055e1db6e0839ea9a26149e78c13ab5a73b/python/ee/geometry.py#L585
When you don’t specify an argument, it gets the value of _UNSPECIFIED
, so the function _GetSpecifiedArgs
trims that argument, and as _parseArgs
parses parameters by position, it misparse them. That is what I think is happening.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Tkinter Canvas polygon object issues - python - Stack Overflow
When the create_polygon method asks for an even number of arguments, why not provide an even number? The create_polygon method takes ...
Read more >Confusion regarding TopoJSON polygon coordinates
I have a TopoJSON file which represents a hexagon. A hexagon has 6 vertices, so I was expecting the arcs attribute of TopoJSON...
Read more >The Curious Case of Convexity Confusion - Project Zero
A concave polygon is a polygon that is not convex. ... functions we can call with a path object as an argument do...
Read more >Construction of regular polygons - DynamicsOfPolygons.org
A constructible regular polygon is one that can be constructed with compass and (unmarked) straightedge. For example the construction on the right below ......
Read more >Polygon - Wikipedia
A simple polygon is one which does not intersect itself. Mathematicians are often concerned only with the bounding polygonal chains of simple polygons...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is still an open bug, but you can work around it by specifying
proj=None
.Thank you!!
El lun., 25 de nov. de 2019 a la(s) 14:48, Tyler Erickson ( notifications@github.com) escribió:
– Jorge R