<div dir="ltr">Thanks for the tip, Simone!  Unfortunately, this didn't work for me.<div><br></div><div>I tracked down the code that looks to be responsible here, in the `gsconfig` package, with (roughly) this call chain:</div><div><br></div><div>geonode/geoserver/management/commands/updatelayers.py ~ handle</div><div>geonode/geoserver/helpers ~ gs_slurp</div><div>(path/to/virtualenv)/geonode/lib/python2.7/site-packages/geoserver/catalog.py ~ get_resources</div><div><br></div><div>From here, a few different calls are made, but none appear to directly query the REST endpoint that returns layer groups.  I'm unsure if a layer group should be a DataStore, a CoverageStore, or a WMS Store, but it appears in none of those endpoints in my local instance:</div><div><br></div><div><div><a href="http://localhost:8080/geoserver/rest/workspaces/geonode/datastores.xml">http://localhost:8080/geoserver/rest/workspaces/geonode/datastores.xml</a></div><div><a href="http://localhost:8080/geoserver/rest/workspaces/geonode/coveragestores.xml">http://localhost:8080/geoserver/rest/workspaces/geonode/coveragestores.xml</a></div><div><a href="http://localhost:8080/geoserver/rest/workspaces/geonode/wmsstores.xml">http://localhost:8080/geoserver/rest/workspaces/geonode/wmsstores.xml</a></div></div><div><br></div><div>...it does, however show up here:</div><div><br></div><div><div><a href="http://localhost:8080/geoserver/rest/workspaces/geonode/layergroups.xml">http://localhost:8080/geoserver/rest/workspaces/geonode/layergroups.xml</a></div></div><div><br></div><div>I've tried a few variations on configuring the layer group to see if I could coax it into one or the other category but couldn't get it to happen.</div><div><br><div>Version info: clean source install of GeoNode running on the 2.4.x branch; GeoServer is 2.7.4.  Host OS is 14.04.02 LTS.</div><div><br></div></div><div>At this point, my questions are:</div><div><br></div><div>(1) Is this expected behavior?</div><div>(2) Is there a way to hack the GeoNode database to point at my layer group?</div><div>(3) If this is missing functionality, would it be of interest to the GN project?</div><div><br></div><div>If this is missing functionality, it's not clear to me how much existing logic from the add/create layers code could be reused (it looks like the URL endpoints for layers that the `gsconfig` library returns is rather different from what you can get at the layergroups.xml endpoint).</div><div><br></div><div>Any further guidance would be appreciated!</div><div><br></div><div>- Bruce</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 30, 2016 at 12:34 AM, Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, <div><br></div><div>Once you have created the layer group in geoserver you can run "geonode updatelayers " this should create the new layer in Geonode. <span></span></div><div><br></div><div>Hope this helps <div><div class="h5"><br><br>Il sabato 30 aprile 2016, Bruce Crevensten <<a href="mailto:becrevensten@alaska.edu" target="_blank">becrevensten@alaska.edu</a>> ha scritto:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Is it possible to configure a layer in GeoNode that uses a "Layer Group" that is created within GeoServer?  I'm trying to do something like this:<div><br></div><div>1. Upload various layers in GeoNode,</div><div>2. Compose a Layer Group in GeoServer from these layers, using the GeoServer web interface,</div><div>3. Create a new layer, or do something to make a new layer in GeoNode display that Layer Group.</div><div><br></div><div>Step 3 is where I'm unclear what to do.  I tried a few variations of using the Django admin interface to directly edit a Layer (and a MapLayer) to attempt to point at the layer group, but wasn't successful.</div><div><br></div><div>Also, I saw that the documentation does discuss creating a layer group:</div><div><br></div><div><a href="http://docs.geonode.org/en/master/tutorials/advanced/adv_data_mgmt/pretty_maps/base_map.html" target="_blank">http://docs.geonode.org/en/master/tutorials/advanced/adv_data_mgmt/pretty_maps/base_map.html</a><br></div><div><br></div><div>....but that tutorial continues to discuss uDig, not GeoNode.</div><div><br></div><div>Is this functionality supported?  If not, would this be something of interest to others?</div><div><br></div><div>Thanks!</div><div><div><br></div>-- <br><div><div dir="ltr"><div><b>Bruce Crevensten</b></div><div><b><br></b></div><div><b>Senior Software Engineer<br></b></div><div><div>(SNAP) Scenarios Network for Alaska & Arctic Planning<br></div></div><div><div><a href="http://www.snap.uaf.edu/" target="_blank">www.snap.uaf.edu</a></div>

</div></div></div>
</div></div>
</blockquote></div></div></div><span class="HOEnZb"><font color="#888888"><br><br>-- <br>Simone <br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><b>Bruce Crevensten</b></div><div><b><br></b></div><div><b>Senior Software Engineer<br></b></div><div><div>(SNAP) Scenarios Network for Alaska & Arctic Planning<br></div></div><div><div><a href="http://www.snap.uaf.edu/" target="_blank">www.snap.uaf.edu</a></div>

</div></div></div>
</div>