Michelle,
Hi, I wonder if you need to have a published layer per SLD file. Depending on the consuming client, you can associate more than one SLD file per layer and use the, as an example, STYLES=style_2 parameter on a WMS getMap call.
So, if you have a set of database tables called tbl_roads and tbl_rail with a set of SLDs called STYLE_HWY, STYLE_RURAL_ROAD, STYLE_RAIL, STYLE_RURAL_RAIL;
With the current naming of layers to match an associated SLD, you end up with
Exposed Layer Name DB Table Name SLD Name
Layer_hwy tbl_roads STYLE_HWY
Layer_road tbl_roads STYLE_RURAL_ROAD
Layer_rail tbl_rail STYLE_RAIL
Layer_rural_rail tbl_rail STYLE_RURAL_RAIL
With a default style and associated styles (either setup in the GUI or via REST calls), you can have the following:
Exposed Layer Name DB Table Name SLD Name
Layer_roads tbl_roads Default: STYLE_HWY Associated: STYLE_RURAL_ROAD
Layer_rails tbl_rail Default: STYLE_RAIL Associated: STYLE_RURAL_RAIL
This may help cut down on the required layers being generated. Maybe this will help.
Chris Snider
Senior Software Engineer
Intelligent Software Solutions, Inc.
-----Original Message-----
From: Douville, Michelle R GCPE:EX [mailto:Michelle.Douville@…2145…]
Sent: Tuesday, July 14, 2015 9:30 AM
To: 'Simone Giannecchini'
Cc: 'geoserver-users@lists.sourceforge.net'
Subject: Re: [Geoserver-users] re-publish via Geoserver REST Admin
Hi Simone,
I should of explained better.
We currently have geoserver implemented with 700+ layers.
Each layer has somewhere between 2 and 100 SLDs associated with them.
One of the options I am considering, is to have a 1:1 layer to representation (vs 1:1 layer to feature class in the database). But then I am not completely sold on this approach either.
You can do this via the GUI with the 'publish again' button, and assign a different SLD.
I was wondering if there was a 'publish again' feature to the Geoserver REST admin to script against, as I don't want to configure 3000+ layers via the GUI 'publish again' button.
I hope that makes sense.
Thanks
Michelle
-----Original Message-----
From: simboss1@...84... [mailto:simboss1@…84…] On Behalf Of Simone Giannecchini
Sent: Tuesday, July 14, 2015 1:03 AM
To: Douville, Michelle R GCPE:EX
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] re-publish via Geoserver REST Admin
Dear Michelle,
can you be more specific on what you are trying to do?
Regards,
Simone Giannecchini
GeoServer Professional Services from the experts!
Visit http://goo.gl/it488V for more information.
Ing. Simone Giannecchini
@simogeo
Founder/Director
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928
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 Mon, Jul 13, 2015 at 5:50 PM, Douville, Michelle R GCPE:EX <Michelle.Douville@...2145...> wrote:
Hi All,
Quick question, is there a way to re-publish layers via the Geoserver
REST Admin.
I checked out this URL.. but didn’t see anything obvious.
http://docs.geoserver.org/stable/en/user/rest/api/index.html
I see you can do it via the GUI, and I was just wondering if there was
an equivalent rest call.
Thanks
M Douville
----------------------------------------------------------------------
-------- Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users