47ad3d1c02971eef9d1b37708bd79bb539cbac31,geometry/eolearn/geometry/transformations.py,RasterToVector,_vectorize_single_raster,#RasterToVector#Any#Any#Any#Any#,260
Before Change
geo_series = GeoSeries(geo_list)
value_series = GeoSeries(value_list)
series_dict = dict(VALUE=value_series, geometry=geo_series) if timestamp is None else \
dict(VALUE=value_series, TIMESTAMP=GeoSeries([timestamp] * len(geo_list)), geometry=geo_series)
return GeoDataFrame(series_dict, crs={"init": "epsg:{}".format(crs.value)})
def execute(self, eopatch):
Execute function which adds new vector layer to the EOPatch
After Change
vector_data = GeoDataFrame(series_dict, crs={"init": "epsg:{}".format(crs.value)})
if not vector_data.geometry.is_valid.all():
vector_data.geometry = vector_data.geometry.buffer(0)
return vector_data
def execute(self, eopatch):
Execute function which adds new vector layer to the EOPatch
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: sentinel-hub/eo-learn
Commit Name: 47ad3d1c02971eef9d1b37708bd79bb539cbac31
Time: 2019-05-28
Author: matej.aleksandrov@sinergise.com
File Name: geometry/eolearn/geometry/transformations.py
Class Name: RasterToVector
Method Name: _vectorize_single_raster
Project Name: deepmipt/DeepPavlov
Commit Name: cb0c025ab87216d35b68a2b4b36d61621acd76ba
Time: 2018-01-31
Author: arkhipov@yahoo.com
File Name: deeppavlov/models/ner/slotfill.py
Class Name: DstcSlotFillingNetwork
Method Name: infer
Project Name: matplotlib/matplotlib
Commit Name: 34b8eb46e5de6b760bc131e461755042716e259d
Time: 2018-02-07
Author: story645@gmail.com
File Name: lib/matplotlib/category.py
Class Name: StrCategoryConverter
Method Name: convert