geonode.upload.upload_validators
Tools for performing validation of uploaded spatial files.
Attributes
Functions
|
|
|
|
|
Validates that a shapefile can be loaded from the input file paths |
|
|
|
Validate uploaded KML file and a possible image companion file |
|
|
|
|
|
|
|
|
|
Module Contents
- geonode.upload.upload_validators.validate_uploaded_files(cleaned, uploaded_files, field_spatial_types, base_file_path)[source]
- geonode.upload.upload_validators._validate_shapefile_components(possible_filenames)[source]
Validates that a shapefile can be loaded from the input file paths
- Parameters:
possible_files (list) – Remaining form upload contents
- Raises:
forms.ValidationError
- geonode.upload.upload_validators.validate_kml(possible_files)[source]
Validate uploaded KML file and a possible image companion file
KML files that specify vectorial data typers are uploaded standalone. However, if the KML specifies a GroundOverlay type (raster) they are uploaded together with a raster file.