[GeoNode-users] default workspace for geosites

Eugenio Trumpy frippe12573 at hotmail.com
Wed Jan 18 02:01:44 PST 2017


Ok, thank you for this further explanation Simone.

Currently I have only the master site and the gemex site, so I tested:

  *   a layer uploaded in the master it is not seen in the gemex site, I think this is correct
  *   a layer uploaded in the gemex site is seen in gemex of course but also in the master site, this is correct too
  *   (I should test with a new geosite to upload a layer, in that case I have to see it in the new geosite and of course in the master)

Just a curiosity, is it possible to see only the layers uploaded in a geosite in the layer filter named 'type', since currently I see
the total number of layer I have.

thanks

E.



________________________________
Da: Simone Dalmasso <simone.dalmasso at gmail.com>
Inviato: mercoledì 18 gennaio 2017 10.00
A: Eugenio Trumpy
Cc: Alessio Fabiani; geonode-users at lists.osgeo.org
Oggetto: Re: [GeoNode-users] default workspace for geosites

Eugenio,

not sure about the workspace, probably the default one is used and the doc must be update, I'll find some time to check it.

Anyway geosites already separates the layers, docs, maps and users by site. A layer uploaded by a normal user in a site will be visible only in that site. The normal use itself is visible in the specific site. Only administrators have access to all sites and resources. Geoserver getCapabilities also respect this so you don't have to worry. You as administrator can do other operations such as share resources or people across more sites.

2017-01-18 9:42 GMT+01:00 Eugenio Trumpy <frippe12573 at hotmail.com<mailto:frippe12573 at hotmail.com>>:

Dear Simone,


I understood there is not the possibility to upload layers from sites in different geoserver workspaces (is that definitely true or there is a way to setup that by hand?) as described in the documentation, the only way is to load all the layers from sites in the same geoserver workspace (geonode is the default), then to yield layers visible to different sites the administrator should setup the security data for each layer to a role specially created, am I correct?

In this way I guess the administrator has to check always if a user uploaded a layer in order to setup then the security on the uploaded layers, am I right?


Currently in my site I have no layers uploaded, however, I see a certain number of vector and raster layers uploaded (actually in 'geonode' geoserver workspace), that's why those layer are set *.*.r in geoserver?


ciao


Eugenio



________________________________
Da: Eugenio Trumpy <frippe12573 at hotmail.com<mailto:frippe12573 at hotmail.com>>
Inviato: venerdì 13 gennaio 2017 12.04
A: Simone Dalmasso; Alessio Fabiani
Cc: geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>
Oggetto: Re: [GeoNode-users] default workspace for geosites


The suggested way to store the layers belonging different geosites in geoserver It seemed nice to me.

I read it here: https://geonode.readthedocs.io/en/2.0/tutorials/admin/multi-tenancy.html

I wondered how I should create the workspace in geoserver.

I presume by hand from geoserver interface, then second question was where I have to

set the workspace for the geosite since in the global setting.py I have:

DEFAULT_WORKSPACE

and

CASCADE_WORKSPACE (what does it means? What is it?)


I suppose the master site has to have DEFAULT_WORKSPACE = 'geonode'

whereas the site DEFAULT_WORKSPACE = 'geosite', so loading a layer from the site it should use such workspace, is that right?

Why it does not work?


I understand that could be a second way (i.e. the way suggested by Simone), could you give me an example? I guess you act layer by layer adding new rules in geoserver 'Data security'.


ciao


Eugenio



________________________________
Da: Simone Dalmasso <simone.dalmasso at gmail.com<mailto:simone.dalmasso at gmail.com>>
Inviato: venerdì 13 gennaio 2017 11.45
A: Alessio Fabiani
Cc: Eugenio Trumpy; geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>
Oggetto: Re: [GeoNode-users] default workspace for geosites

Not sure about the default workspace it might be a geonode bug. But I leave the layers in the "geonode" one and it works well. Layers are managed respecting permissions, and it works well in the instances I have.

2017-01-13 10:59 GMT+01:00 Alessio Fabiani <alessio.fabiani at geo-solutions.it<mailto:alessio.fabiani at geo-solutions.it>>:
Not sure but I'm afraid geonode has currently a lot of hardcoded stuff. It is quite premature speaking about multi-tenancy on GeoNode.

Best Regards,
Alessio Fabiani.

==
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
==

Ing. Alessio Fabiani
@alfa7691
Founder/Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
Italy
phone: +39 0584 962313<tel:+39%200584%20962313>
fax:     +39 0584 1660272<tel:+39%200584%20166%200272>
mob:   +39 331 6233686<tel:+39%20331%20623%203686>

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

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.



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.

---------------------------------------------------------------------

On Fri, Jan 13, 2017 at 10:44 AM, Eugenio Trumpy <frippe12573 at hotmail.com<mailto:frippe12573 at hotmail.com>> wrote:

Dear all,


I setup geosites in my geonode instance.


I'm now testing the geosite I created. I tried to upload a SHP from my new geosite and the procedure went well.

However in geoserver, I see the new layer under the workspace named 'geonode', which was created by the master site (for master site I mean the one we have with the default installation of geonode). Since i inserted the variable DEFAULT_WORKSPACE='mynewgeosite' in the settings.py placed in the folder of my new geosite, I was expected to have the new SHP in the new geoserver workspace.

Where am I wrong?


Moreover, after the layer upload I can see it in the layer list, but in the 'type' filter I see the vector layer loaded over all the others layers loaded in the master site.

I was expected to have only 1 layer. Is that correct or it is due to a somehow miss-configuration?


Thanks in advance


Eugenio

_______________________________________________
geonode-users mailing list
geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/geonode-users



_______________________________________________
geonode-users mailing list
geonode-users at lists.osgeo.org<mailto:geonode-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/geonode-users




--
Simone



--
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170118/a728535e/attachment-0001.html>


More information about the geonode-users mailing list