geonode.base.utils
Utilities for managing GeoNode base models
Attributes
Classes
Functions
|
Fetches the UUID associated with the given thumbnail file |
Deletes orphaned thumbnails. |
|
|
Makes a scan of Links related to the resource and removes the duplicates. |
|
|
|
|
|
Remove country code (us) from language name (en-us) |
Module Contents
- geonode.base.utils._names = ['Zipped Shapefile', 'Zipped', 'Shapefile', 'GML 2.0', 'GML 3.1.1', 'CSV', 'GeoJSON', 'Excel',...[source]
- geonode.base.utils.get_thumb_uuid(filename)[source]
Fetches the UUID associated with the given thumbnail file
- geonode.base.utils.remove_duplicate_links(resource)[source]
Makes a scan of Links related to the resource and removes the duplicates. It also regenerates the Legend link in case this is missing for some reason.