Could not convert the geojson to ee.Geometry() #1943
-
My GeoJSON Files Structure. {"type": "FeatureCollection", "name": "10", "crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:OGC:1.3:CRS84"}}, "features": [{"type": "Feature", "properties": {"Id": "75"}, "geometry": {"type": "MultiPolygon", "coordinates": [[[[[71.000348, 31.199419], [71.00038, 31.198841], [71.000294, 31.198832], [71.000294, 31.197318], [71.0006, 31.197379], [71.000712, 31.197094], [71.000718, 31.196727], [71.001088, 31.19675], [71.001329, 31.196746], [71.001426, 31.196759], [71.001442, 31.197227], [71.001463, 31.197792], [71.001409, 31.198853], [71.001356, 31.199478], [71.000348, 31.199419]]]]]}}, {"type": "Feature", "properties": {"Id": "77"}, "geometry": {"type": "MultiPolygon", "coordinates": [[[[[72.469083, 31.00806], [72.469083, 31.00806], [72.470054, 31.009012], [72.470054, 31.009012], [72.471138, 31.008148], [72.471138, 31.008148], [72.47021, 31.007159], [72.47021, 31.007159], [72.469083, 31.00806]]]]]}}]}
What I am trying to do. I want to Iterate multiple GeoJSON files with the same structure. First I want to iterate on all the GeoJSON files, after this, I want to Iterate over each feature in the GeoJSON file. Then I filter using Feature ID. Each feature has a unique ID. Then I want to Load the GeoJSON string into Earth Engine. Error.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You data probably have some nodata. As I said before, if you want others to help you, make sure you provide a small complete script that can reproduce the issue. Copy your code and run it on Colab. If it does not work there, that means your script is not a good script for others to debug. |
Beta Was this translation helpful? Give feedback.
You data probably have some nodata. As I said before, if you want others to help you, make sure you provide a small complete script that can reproduce the issue. Copy your code and run it on Colab. If it does not work there, that means your script is not a good script for others to debug.