Skip to content

Support uploading NetCDF (.nc) files as documents #14588

Description

@TheStarsBlink

Use case

I would like to upload NetCDF (.nc) files to GeoNode as documents, so users can catalogue, manage permissions, and download the original files. GeoServer publishing or map visualization is not required.

Current behavior

In my current checkout (GeoNode 5.1.0 dev), .nc is not included in DOCUMENT_TYPE_MAP. Adding nc to ALLOWED_DOCUMENT_TYPES alone does not enable it because the setting is filtered against that map. Uploads also require content-type validation configuration.

Questions

Is excluding NetCDF from document uploads intentional, or is this simply a file type that has not yet been added? What is the recommended way to support it, including NetCDF classic and NetCDF-4/HDF5 files?

Expected behavior

  • Allow valid .nc files to be uploaded as documents.
  • Preserve the original file for download.
  • Use the existing document metadata and permission controls.
  • Require no spatial parsing or GeoServer publishing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions