Hi Stefano, 2011/8/22 Stefano Menegon <[email protected]>: > Hi Luca, > > >> for every data, the Native SRS shown is always 32044. Looking at the >> code it seems that the problem is in: >> {% if layer.metadata.crsOptions %}<p> <strong>{% trans "Native SRS" >> %}:</strong> {{ layer.metadata.crsOptions.0|default:_("No SRS >> specified.") }} </p>{% endif %} >> >> layer.metadata.crsOptions is a big list of CRS and >> layer.metadata.crsOptions.0 gives EPSG:32044. >> >> Any idea? >> Thx > > I investigated it a few weeks ago. > The param "layer.metadata.crsOptions" is the list of all the CRS > supported by geoserver wms. > So, it always displays the first of these CRS, not realy the native SRS. > > You can configure the "Limited SRS list" option (Geoserver - Services > - WMS) in order to change the layer.metadata.crsOptions value, > however, I do not know how to get the native SRS value. > > //stefano menegon >
I double checked with World Map and the Layer class has got an srs attribute: https://github.com/cga-harvard/cga-worldmap/blob/master/src/GeoNodePy/geonode/maps/models.py#L842 If I am not wrong the value is set here: https://github.com/cga-harvard/cga-worldmap/blob/master/src/GeoNodePy/geonode/maps/models.py#L1283 Then in the template you have got layer.srs Ciao Luca -- Luca Casagrande twitter: lucacasagrande
