locationtech-labs / geopyspark

GeoTrellis for PySpark
Other
179 stars 59 forks source link

to_dict Method for Histogram #641

Closed jbouffard closed 6 years ago

jbouffard commented 6 years ago

This PR adds the to_dict method to the Histogram class. The reason for adding this method is because there is currently no easy way to convert a Histogram instance into a dict. This is needed though if the user wishes to save the Histogram as an Attribute as Attributes can only write values that are dicts.

jbouffard commented 6 years ago

Turns out that to_dict already exists. My bad