0

I am trying to add a non-spatial (user-defined) file type, with a .zzz file extension, into GeoServer. This file type has no spatial content but as per requirements, I need to store as a Geonode layer. I can easily store this .zzz file type as a Geonode document by adding the extension in the as part of the list ALLOWED_DOCUMENT_TYPES in the settings.py file.

Is there a way I can change the GeoServer configurationto store these .zzz files?

1 Answer 1

1

I'm not clear on why you need to store them in GeoServer, or what benefit there would be to storing non-spatial files in GeoServer. But that said if you decide to proceed then you will need to write a new Datastore to read these files in and provide the necessary metadata etc for GeoServer to know what to do with them.

There is a Datastore tutorial on the GeoTools site, that will take you through the steps.

2
  • Thank you for your answer. Yes, it is just a client requirement that we store a custom file type (non spatial file) in Geoserver through the Geonode interface. Is anyone familiar with the Geonode Django framework? If so, is is possible to upload these custom files from geonode and (with the suggested changes) Geonode will accept them? The Geonode has several python files involved in the upload process, as per my earlier post: gis.stackexchange.com/questions/421216/…
    – SharmaPN
    Commented Jan 18, 2022 at 9:16
  • 1
    GeoServer can only handle file types it can read data from, they don't need to be spatial, can be also tabular. But you won't be able to store a Word file on it, for example. If you're looking for a GeoNode answer I'd recommend you change the title and tags of the question, or better yet, open a different one. Commented Jan 19, 2022 at 10:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.