GeoNode / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
https://geonode.org/
Other
1.46k stars 1.13k forks source link

Sanitize uploaded layers that start with a numeric character #12749

Open giohappy opened 9 hours ago

giohappy commented 9 hours ago

Geoserver layers starting with a numeric character will throw an error when accessed as GML through WFS. This prevents loading these layers from third-party applications that request WFS data as GML (e.g. QGIS).

The importer will prefix the name of these layers with an underscore ("_") character.

mattiagiupponi commented 9 hours ago

NOTE: the fix should be put here https://github.com/GeoNode/geonode/blob/993364a44c8afa1085dccd2366794789b36a2b39/geonode/upload/handlers/base.py#L186-L207