There are cases where I have a dictionary that was decoded from valid JSON, and the JSON happened to be a GeoJSON object. It would be convenient to have a "load()" function that turns those in to instances of the geojson classes.
In other words,
If I have this:
# from some other source
valid_geojson_decode = dict(type="Polygon", coordinates=....}
There are cases where I have a dictionary that was decoded from valid JSON, and the JSON happened to be a GeoJSON object. It would be convenient to have a "load()" function that turns those in to instances of the
geojson
classes.In other words, If I have this:
Now I have to do this:
Would like to do this: