<div dir="ltr">Hi David, <div>just a clarification on the supported SRS. GeoNode supports any SRS because geoserver does. The 900913 and 4326 are the two supported by the mapping client for visualisation purpose. Originally was supported only the 900913 and recently the 4326 has been added, but this doesn't impact the way the data are stored but only how they are requested to geoserver.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-17 12:12 GMT+01:00 David Alda Fernandez de Lezea <span dir="ltr"><<a href="mailto:dalda@hazi.eus" target="_blank">dalda@hazi.eus</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Thanks for your response Alessio.<br>
<br>
I think it has nothing to do with what I mentioned previously. I’ve checked the contents of each tile of the preview image and I’m getting some coords really away from our extent although the SRS is OK. My mistake.<br>
<br>
-76.43702827394,0,0,76.43702827394<br>
<br>
I've added to the javascript code a coordinate transformation. Now it zooms to where it should, but it doesn't load the layer.<br>
<br>
Would this probably be related to the fact that GeoNode supposes that everything that comes with an SRS different from EPSG:900913 it turns to EPSG:4326?<br>
<br>
Because in the Django admin web, I've seen in the layers properties that there's a field SRS (filled with ESG:4326) and other fields with the corresponding bbox.<br>
<br>
Is there a way to change this programatically?<br>
<br>
In which python is this set?<br>
<br>
Thanks and sorry for the mistake.<br>
<br>
Regards,<br>
<br>
Agur bero bat,<br>
<br>
<br>
<br>
David Alda Fernández de Lezea<br>
Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.<br>
dalda@hazi.eus | www.hazi.eus<br>
T 945 003 240 – M 627 923 170 – F 945 003 290<br>
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba<br>
<br>
********************* LEGE OHARRA ******************* AVISOLEGAL ******************* DISCLAIMER *****************************<br>
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.<br>
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.<br>
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.<br>
<br>
De: <a href="mailto:alessio.fabiani@gmail.com">alessio.fabiani@gmail.com</a> [mailto:<a href="mailto:alessio.fabiani@gmail.com">alessio.fabiani@gmail.com</a>] En nombre de Alessio Fabiani<br>
Enviado el: miércoles, 17 de febrero de 2016 10:05<br>
Para: David Alda Fernandez de Lezea<br>
CC: <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
Asunto: Re: [GeoNode-users] Error 405 not permitted<br>
<br>
Mmm,<br>
I'm not fully sure this method is valid<br>
<br>
url:"/gs/" + workspace + layer.params.LAYERS<br>
<br>
I guess /gs/ is a GeoNode Proxy to GeoServer, used by GeoServer itself to get the authorization rules from GeoNode.<br>
<br>
I'm not fully sure the workspace is supported, but I may be wrong.<br>
<br>
<br>
<br>
<br>
Best Regards,<br>
Alessio Fabiani.<br>
<br>
==<br>
GeoServer Professional Services from the experts!<br>
Visit <a href="http://goo.gl/it488V" rel="noreferrer" target="_blank">http://goo.gl/it488V</a> for more information.<br>
==<br>
<br>
Ing. Alessio Fabiani<br>
@alfa7691<br>
Founder/Technical Lead<br>
<br>
GeoSolutions S.A.S.<br>
Via di Montramito 3/A<br>
55054 Massarosa (LU)<br>
Italy<br>
phone: <a href="tel:%2B39%200584%20962313" value="+390584962313">+39 0584 962313</a><br>
fax: <a href="tel:%2B39%200584%201660272" value="+3905841660272">+39 0584 1660272</a><br>
mob: <a href="tel:%2B39%20333%208128928" value="+393338128928">+39 333 8128928</a><br>
<br>
<a href="http://www.geo-solutions.it" rel="noreferrer" target="_blank">http://www.geo-solutions.it</a><br>
<a href="http://twitter.com/geosolutions_it" rel="noreferrer" target="_blank">http://twitter.com/geosolutions_it</a><br>
<br>
-------------------------------------------------------<br>
<br>
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003<br>
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.<br>
<br>
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.<br>
---------------------------------------------------------------------<br>
<br>
On Tue, Feb 16, 2016 at 2:11 PM, David Alda Fernandez de Lezea <dalda@hazi.eus> wrote:<br>
Yes, I guess so, I haven't changed anything related to GeoNode and Geoserver configuration. Everything is in the same machine.<br>
<br>
The changes I made in the code are (in red):<br>
<br>
/usr/local/lib/python2.7/dist-packages/geonode/settings.py<br>
<br>
LOCAL_GEOSERVER = {<br>
"source": {<br>
"ptype": "gxp_wmscsource",<br>
"url": OGC_SERVER['default']['PUBLIC_LOCATION'] + "geonode/wms",<br>
"restUrl": "/gs/rest"<br>
}<br>
}<br>
<br>
<br>
/var/www/geonode/static/geonode/js/extjs/GeoNode-mixin.js<br>
<br>
layer.url.indexOf(app.localGeoServerBaseUrl.replace(app.urlPortRegEx, "$1/")) === 0)) {<br>
<br>
var workspace="geonode:"; <br>
if (layer.params.LAYERS.indexOf(":")!=-1){<br>
workspace = "";<br>
}<br>
Ext.Ajax.request({<br>
/* TODO: use a template variable here if possible */<br>
url:"/gs/" + workspace + layer.params.LAYERS + "/edit-check",<br>
method:"POST",<br>
success:function (response) {<br>
var result = Ext.decode(response.responseText);<br>
if (result.authorized === false) {<br>
toggleButtons(false);<br>
} else {<br>
layer.displayOutsideMaxExtent = true;<br>
toggleButtons(true);<br>
}<br>
},<br>
failure:function () {<br>
toggleButtons(false);<br>
}<br>
});<br>
} else {<br>
toggleButtons(false);<br>
}<br>
<br>
<br>
Thanks.<br>
<br>
Regards.<br>
<br>
Agur bero bat,<br>
<br>
<br>
David Alda Fernández de Lezea<br>
Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.<br>
dalda@hazi.eus | www.hazi.eus<br>
T 945 003 240 – M 627 923 170 – F 945 003 290<br>
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute – Araba <br>
********************* LEGE OHARRA ******************* AVISOLEGAL ******************* DISCLAIMER *****************************<br>
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.<br>
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.<br>
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.<br>
<br>
De: <a href="mailto:alessio.fabiani@gmail.com">alessio.fabiani@gmail.com</a> [mailto:<a href="mailto:alessio.fabiani@gmail.com">alessio.fabiani@gmail.com</a>] En nombre de Alessio Fabiani<br>
Enviado el: martes, 16 de febrero de 2016 13:24<br>
Para: David Alda Fernandez de Lezea<br>
CC: <a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
Asunto: Re: [GeoNode-users] Error 405 not permitted<br>
<br>
Are GeoServer and GeoNode under the same domain? (same hostname and same port)?<br>
<br>
<br>
Best Regards,<br>
Alessio Fabiani.<br>
<br>
==<br>
GeoServer Professional Services from the experts!<br>
Visit <a href="http://goo.gl/it488V" rel="noreferrer" target="_blank">http://goo.gl/it488V</a> for more information.<br>
==<br>
<br>
Ing. Alessio Fabiani<br>
@alfa7691<br>
Founder/Technical Lead<br>
<br>
GeoSolutions S.A.S.<br>
Via di Montramito 3/A<br>
55054 Massarosa (LU)<br>
Italy<br>
phone: <a href="tel:%2B39%200584%20962313" value="+390584962313">+39 0584 962313</a><br>
fax: <a href="tel:%2B39%200584%201660272" value="+3905841660272">+39 0584 1660272</a><br>
mob: <a href="tel:%2B39%20333%208128928" value="+393338128928">+39 333 8128928</a><br>
<br>
<a href="http://www.geo-solutions.it" rel="noreferrer" target="_blank">http://www.geo-solutions.it</a><br>
<a href="http://twitter.com/geosolutions_it" rel="noreferrer" target="_blank">http://twitter.com/geosolutions_it</a><br>
<br>
-------------------------------------------------------<br>
<br>
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003<br>
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.<br>
<br>
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.<br>
---------------------------------------------------------------------<br>
<br>
On Tue, Feb 16, 2016 at 1:02 PM, David Alda Fernandez de Lezea <dalda@hazi.eus> wrote:<br>
Hi list,<br>
<br>
I'm continuing with our GeoNode customization. One of our requirements was to show in the GeoExplorer Local GeoServer combo only the layers from "geonode" workspace. So far I've been able to modify everything and get it working, but I've found an issue while accessing layer details. I get an HTTP 405 error METHOD NOT ALLOWED while accessing <a href="http://192.168.1.190/gs/rest/styles" rel="noreferrer" target="_blank">http://192.168.1.190/gs/rest/styles</a><br>
<br>
HTTP/1.1 405 METHOD NOT ALLOWED<br>
Date: Tue, 16 Feb 2016 11:39:17 GMT<br>
Server: Apache/2.4.7 (Ubuntu)<br>
Vary: Accept-Language,Cookie<br>
X-Frame-Options: SAMEORIGIN<br>
Content-Language: es<br>
Content-Length: 0<br>
Keep-Alive: timeout=5, max=100<br>
Connection: Keep-Alive<br>
Content-Type: text/plain<br>
<br>
And the layer is not displayed in the preview. Apache doesn't show any error.<br>
<br>
Can anyone point me to the file(s) that I have to change?<br>
<br>
Thanks in advance.<br>
<br>
Regards,<br>
<br>
Agur bero bat,<br>
<br>
<br>
David Alda Fernández de Lezea<br>
Área de Sistemas de Información Geográfica, Planificación Territorial y Forestal Informazio Geografikoen Sistemak, Lurralde eta Baso Antolaketaren Arloa.<br>
dalda@hazi.eus | www.hazi.eus<br>
T 945 003 240 - M 627 923 170 - F 945 003 290<br>
Hazi | Granja Modelo de Arkaute s/n | 01192 Arkaute - Araba<br>
<br>
********************* LEGE OHARRA ******************* AVISOLEGAL ******************* DISCLAIMER *****************************<br>
Mezu hau pertsonala eta isilpekoa da eta baimenik gabeko erabilera debekatua dago legalki. Jasotzailea ez bazara ezabatu mezua, bidali eta kontserbatu gabe.<br>
Este mensaje es personal y confidencial y su uso no autorizado está prohibido legalmente. Si usted no es el destinatario, proceda a borrarlo, sin reenviarlo ni conservarlo.<br>
This message is personal and confidential, unauthorised use is legally prohibited. If you are not the intended recipient, delete it without resending or backing it.<br>
<br>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
<br>
<br>
<br>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
<br>
_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Simone </div>
</div>