Exemplo n.º 1
0
 def loadFromJsonEntity(cls, json_entity):
     return GeometryCollection(*map(lambda x: GeoJSON.loadFromJsonEntity(x),
                                    json_entity["geometries"]))
Exemplo n.º 2
0
 def loadFromJsonEntity(cls, json_entity):
     return Feature(GeoJSON.loadFromJsonEntity(json_entity["geometry"]),
                    json_entity["properties"],
                    json_entity["id"] if "id" in json_entity else None)