Geodirectory¶
-
terralego.geodirectory.create_entry(geometry, tags=None)¶ Create a new entry.
Parameters: - geometry – A WKT string representing the geometry of the entry or a dict representing the geojson.
- tags – A list of string describing the entry. Can be used for filtering later on.
Returns: A geojson describing the entry as a python dictionnary.
-
terralego.geodirectory.delete_entry(entry_id)¶ Delete an entry.
Parameters: entry_id – The id of the entry.
-
terralego.geodirectory.get_entry(entry_id)¶ Get an entry.
Parameters: entry_id – The id of the entry. Returns: A geojson describing the entry as a python dictionnary.
-
terralego.geodirectory.update_entry(entry_id, geometry, tags=None)¶ Update an entry.
Parameters: - entry_id – The id of the entry.
- geometry – A WKT string representing the geometry of the entry or a dict representing the geojson.
- tags – A list of string describing the entry. Can be used for filtering later on.
Returns: A geojson describing the updated entry as a python dictionnary.