kartoza / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
http://geonode.org/
GNU General Public License v3.0
8 stars 17 forks source link

ensure TMS endpoint for raster layer is available in metadata view #215

Open gubuntu opened 7 years ago

gubuntu commented 7 years ago

like http://staging.geonode.kartoza.com/qgis-server/tiles/tmp56nevj/{x}/{y}/{z}.png

where does the 'tmp56nevj' get generated and is it static and managed in the database or dynamically generated?

Gustry commented 7 years ago

tmp56nevj is the name of the layer. It was the name of the file you uploaded. We didn't generate this name.

Maybe @ismailsunni, is-it in the DB that we set what we expose in the layer metadata ?

lucernae commented 7 years ago

it was a generated name from geosafe's impact layer.

ismailsunni commented 7 years ago

Yes, like @lucernae said.

Gustry commented 7 years ago

Ah yes, I forgot geosafe. I was thinking about qgis-server backend only, where we take the file basename.

@ismailsunni I was asking how we add an new entry in the layer metadata ?

lucernae commented 7 years ago

Ah yes, I forgot geosafe. I was thinking about qgis-server backend only, where we take the file basename.

Just FYI, yes it was coming from the basename.

Gustry commented 7 years ago

You should generate something like {hazard}-On-{exposure}-{date}

lucernae commented 7 years ago

It was something like that before. But it becomes too long and incomprehensible, there was similar complain. But this is just a filename, right? The title of the layer can still be changed.

I think, it's better to let the user just choose the name.