Thanks for the comments Charles.

1. I think your layer copy feature is almost what you get with [republish] since you can change just about all the attributes in the edit layer dialogs.

2. The feature data for the whole shapefile is made available when re-publishing the 'master' layer. We use OpenLayers as well, and you can see this effect without ever leaving Geoserver as follows:

- Upload a sample shapefile with layers R, S, T

- Upload three SLD files one for each layer

- The shapefile is a "layer" itself...so go to the Layer list and "add new resource"

- Choose the store/test shapefile and [publish again]

- Name the layer R

- Apply the style R

- save.... we now have a new layer R

- Go to the preview Layers area, choose to preview layer R as OpenLayers WMS

- A viewer will appear. Click on the map.

- Feature info *for the whole shape file* will be presented...not just the data for the styled layer.

This would obviously be the case because at no point did I specify that the data should be limited to the single layer within the "master" shapefile.... and this is my point/query: how *should* this process be done?

I can't see how the restful cURL addresses this issue. Even if it will automatically create a new layer for each layer in a shapefile (and limit the data to that layer), I can't see how we associate the SLD file, or assign layer-specific metadata to each layer.


John Brisbin
Managing Director, BoaB interactive Pty Ltd
POB 802 Townsville, QLD 4810

M: 0407 471 565 | P: 07 3103 0574
Skype: boabjohn | Twitter: @boabjohn


On 7/09/2011 10:28 PM, Charles Galpin wrote:
I haven't used the rest api but that sounds like what you want. However I wanted to mention two things.

1. I'd be interested in seeing a "layer copy" feature to be able to quickly setup a new layer that was very similar to an existing one, but change some attributes (including store/layer)

2. What viewer are you talking about here? I have only used openlayers but you should be able to specify the layer you want info for in a get feature info request.

charles

On Sep 7, 2011, at 2:51 AM, John Brisbin wrote:

Note that this "republish" technique is great because I don't have to
re-upload the shapefile data each time...but 'republish' includes the
entire dataset (naturally). So when we look at the map in a viewer and
click for feature info, what gets returned is the entire dataset, not
just the specific layer that has been styled.

------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to