I changed the names of the layers, so they were unique, and managed to get the layer group working, but we're only at an exploratory state.
We're going to be running a site that serves map data for 20+ different customers, each with its own data store, and each store having the same layer names. Manually changing each of those 100+ layers is going to be a management headache. Here's a question. If I add a new data store to GeoServer, it creates a number of unpublished layers, each with the name of the individual shapefile, PostGIS table, etc. that is its source. When I publish a layer, I can change the name of the layer, so that it no longer matches the underlying file/table in the data store. How do I determine, within the GeoServer admin tool, the name of a layer's underlying file/table? The name of the layer can be changed, so we can't count on that. We can see the name of the fields (Feature Type Details) on the layer page. But I can't see the name of the feature, anywhere. From: Charles Galpin [mailto:[email protected]] Sent: Friday, April 01, 2011 7:36 AM To: Jeff Dege Cc: [email protected] Subject: Re: [Geoserver-users] Problems with adding layers to layer groups On Mar 31, 2011, at 8:10 PM, Jeff Dege wrote: In the "Choose new layer" dialog, I see the layers from all three of my stores and all three of my workspaces. Many of the layer names are the same, of course, because the layers had the same name in the data stores. But the stores and the workspaces all line up fine - the first layer named "county" is from store "map1" and is in workspace "map1", the second in "map2" and "map2", etc. So since I'm creating a layer group for workspace 3, I select the "county" layer from data store "map3" and workspace "map3". When I return to the "New Layer Group" page, I see the county layer from "map2" has been added to the layer group. It's like it is picking the first layer with that name, rather than the layer I'd actually selected. Has anybody run into this before? Jeff, I ran into similar oddities having workspaces and stores with layers of the same name. I saw several different variants, including when deleting layers, but it almost seemed random and could not reproduce it every time, so I took the advice my doctor gives - if it hurts when you do that, stop doing that :) I think I opened a ticket for one of them. charles
------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
