geetools.batch.featurecollection.fromGeoJSON#
- geetools.batch.featurecollection.fromGeoJSON(filename=None, data=None, crs=None)#
Create a list of Features from a GeoJSON file. Return a python tuple.
with ee.Feature inside. This is due to failing when attempting to create a FeatureCollection (Broken Pipe ERROR) out of the list. You can try creating it yourself casting the result of this function to a ee.List or using it directly as a FeatureCollection argument.
- Parameters:
filename (str) – the name of the file to load
crs – a coordinate reference system in EPSG format. If not specified it will try to get it from the geoJSON, and if not there it will rise an error
- Type:
crs: str
- Returns:
a tuple of features.