[Geoserver-users] How to check available layers (not already published ) in a store through rest/java API?

Hi!

In the “new layer” page of geotools webapp, after selecting a store, there is a list of all the available layers included in that store, both published and not published.

How can I check that list and publish the “not already published” layers in the store through the “geoserver manager” java api (or the rest api)? I’m not finding the correct method or way to implement that.

All the methods I see in the GeoServerRESTPublisher create the store and publish the layers at the same time, and i can’t use that in my use case.

I was trying to use the “GeoServerRESTPublisher.configureCoverage(gSCoverageEncoder, workspaceName, storeName, layerName)” method, but it print an error message saying that
“ERROR GeoServerRESTPublisher:2789 - No coverages found in new coveragestore XX called ZZ”

I also see that GeoServerRESTReader.existsCoverage(workspaceName, storeName, layerName) return false if the coverage is not already published.

I’m not finding something similar in the rest api, but maybe i’m missing something.

Hope someone could help with this!

Regards,

Ciao Jose,
this is the wrong list, you should post this question on the geoserver
manager mailing list.

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 di Montramito 3/A
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 Thu, May 5, 2016 at 1:30 AM, Jose M <soloninguno@anonymised.com> wrote:

Hi!

In the "new layer" page of geotools webapp, after selecting a store, there
is a list of all the available layers included in that store, both published
and not published.

How can I check that list and publish the "not already published" layers in
the store through the "geoserver manager" java api (or the rest api)? I'm
not finding the correct method or way to implement that.

All the methods I see in the GeoServerRESTPublisher create the store and
publish the layers at the same time, and i can't use that in my use case.

I was trying to use the
"GeoServerRESTPublisher.configureCoverage(gSCoverageEncoder, workspaceName,
storeName, layerName)" method, but it print an error message saying that
"ERROR GeoServerRESTPublisher:2789 - No coverages found in new coveragestore
XX called ZZ"

I also see that GeoServerRESTReader.existsCoverage(workspaceName, storeName,
layerName) return false if the coverage is not already published.

I'm not finding something similar in the rest api, but maybe i'm missing
something.

Hope someone could help with this!

Regards,

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers
of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks SImone,

Sorry about that I'll post it there.

Nevetherless the question also apply to the rest API, how can I check the list of all available layers in a store, and publish the "not already published" layers? The methods I found in the rest api create the store and publish the layer/s at the same time, and that is not what i need.

Kind regards,
________________________________________
De: simboss1@anonymised.com <simboss1@anonymised.com> en nombre de Simone Giannecchini <simone.giannecchini@anonymised.com>
Enviado: jueves, 05 de mayo de 2016 05:45 a.m.
Para: Jose M
Cc: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] How to check available layers (not already published ) in a store through rest/java API?

Ciao Jose,
this is the wrong list, you should post this question on the geoserver
manager mailing list.

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 di Montramito 3/A
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 Thu, May 5, 2016 at 1:30 AM, Jose M <soloninguno@anonymised.com> wrote:

Hi!

In the "new layer" page of geotools webapp, after selecting a store, there
is a list of all the available layers included in that store, both published
and not published.

How can I check that list and publish the "not already published" layers in
the store through the "geoserver manager" java api (or the rest api)? I'm
not finding the correct method or way to implement that.

All the methods I see in the GeoServerRESTPublisher create the store and
publish the layers at the same time, and i can't use that in my use case.

I was trying to use the
"GeoServerRESTPublisher.configureCoverage(gSCoverageEncoder, workspaceName,
storeName, layerName)" method, but it print an error message saying that
"ERROR GeoServerRESTPublisher:2789 - No coverages found in new coveragestore
XX called ZZ"

I also see that GeoServerRESTReader.existsCoverage(workspaceName, storeName,
layerName) return false if the coverage is not already published.

I'm not finding something similar in the rest api, but maybe i'm missing
something.

Hope someone could help with this!

Regards,

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers
of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Ciao Jose,
quick check, I don't think there is a way to list the layers for a store.

You can list the featuretypes and coverages for a store though.
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 di Montramito 3/A
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 Thu, May 5, 2016 at 4:11 PM, Jose M <soloninguno@anonymised.com> wrote:

Thanks SImone,

Sorry about that I'll post it there.

Nevetherless the question also apply to the rest API, how can I check the list of all available layers in a store, and publish the "not already published" layers? The methods I found in the rest api create the store and publish the layer/s at the same time, and that is not what i need.

Kind regards,
________________________________________
De: simboss1@anonymised.com <simboss1@anonymised.com> en nombre de Simone Giannecchini <simone.giannecchini@anonymised.com>
Enviado: jueves, 05 de mayo de 2016 05:45 a.m.
Para: Jose M
Cc: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] How to check available layers (not already published ) in a store through rest/java API?

Ciao Jose,
this is the wrong list, you should post this question on the geoserver
manager mailing list.

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 di Montramito 3/A
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 Thu, May 5, 2016 at 1:30 AM, Jose M <soloninguno@anonymised.com> wrote:

Hi!

In the "new layer" page of geotools webapp, after selecting a store, there
is a list of all the available layers included in that store, both published
and not published.

How can I check that list and publish the "not already published" layers in
the store through the "geoserver manager" java api (or the rest api)? I'm
not finding the correct method or way to implement that.

All the methods I see in the GeoServerRESTPublisher create the store and
publish the layers at the same time, and i can't use that in my use case.

I was trying to use the
"GeoServerRESTPublisher.configureCoverage(gSCoverageEncoder, workspaceName,
storeName, layerName)" method, but it print an error message saying that
"ERROR GeoServerRESTPublisher:2789 - No coverages found in new coveragestore
XX called ZZ"

I also see that GeoServerRESTReader.existsCoverage(workspaceName, storeName,
layerName) return false if the coverage is not already published.

I'm not finding something similar in the rest api, but maybe i'm missing
something.

Hope someone could help with this!

Regards,

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers
of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Hi Simone,

Thanks. And do you remember if there is any REST method so I can publish a "not already published but existant" coverage from a store? I'm not finding the right method for that in the Rest api.

Basically what I need is some programatically way to do the same as the "Add Layer" page of geoserver (http://postimg.org/image/iblyc7fgh/), where there is the chance to publish the available store layers, regardless they are already published (when button says 'Publish again') or not (button saying 'Publish').

Regards,
________________________________________
De: simboss1@anonymised.com <simboss1@anonymised.com> en nombre de Simone Giannecchini <simone.giannecchini@anonymised.com>
Enviado: jueves, 05 de mayo de 2016 11:38 a.m.
Para: Jose M
Cc: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] How to check available layers (not already published ) in a store through rest/java API?

Ciao Jose,
quick check, I don't think there is a way to list the layers for a store.

You can list the featuretypes and coverages for a store though.
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 di Montramito 3/A
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 Thu, May 5, 2016 at 4:11 PM, Jose M <soloninguno@anonymised.com> wrote:

Thanks SImone,

Sorry about that I'll post it there.

Nevetherless the question also apply to the rest API, how can I check the list of all available layers in a store, and publish the "not already published" layers? The methods I found in the rest api create the store and publish the layer/s at the same time, and that is not what i need.

Kind regards,
________________________________________
De: simboss1@anonymised.com <simboss1@anonymised.com> en nombre de Simone Giannecchini <simone.giannecchini@anonymised.com>
Enviado: jueves, 05 de mayo de 2016 05:45 a.m.
Para: Jose M
Cc: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] How to check available layers (not already published ) in a store through rest/java API?

Ciao Jose,
this is the wrong list, you should post this question on the geoserver
manager mailing list.

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 di Montramito 3/A
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 Thu, May 5, 2016 at 1:30 AM, Jose M <soloninguno@anonymised.com> wrote:

Hi!

In the "new layer" page of geotools webapp, after selecting a store, there
is a list of all the available layers included in that store, both published
and not published.

How can I check that list and publish the "not already published" layers in
the store through the "geoserver manager" java api (or the rest api)? I'm
not finding the correct method or way to implement that.

All the methods I see in the GeoServerRESTPublisher create the store and
publish the layers at the same time, and i can't use that in my use case.

I was trying to use the
"GeoServerRESTPublisher.configureCoverage(gSCoverageEncoder, workspaceName,
storeName, layerName)" method, but it print an error message saying that
"ERROR GeoServerRESTPublisher:2789 - No coverages found in new coveragestore
XX called ZZ"

I also see that GeoServerRESTReader.existsCoverage(workspaceName, storeName,
layerName) return false if the coverage is not already published.

I'm not finding something similar in the rest api, but maybe i'm missing
something.

Hope someone could help with this!

Regards,

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers
of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Sorry, so I understand is not possible to do this with the REST api yet?

Thanks,

________________________________________
De: Jose M <soloninguno@anonymised.com>
Enviado: jueves, 05 de mayo de 2016 03:45 p.m.
Para: geoserver-users@lists.sourceforge.net
Asunto: [Geoserver-users] RV: How to check available layers (not already published ) in a store through rest/java API?

Hi Simone,

Thanks. And do you remember if there is any REST method so I can publish a "not already published but existant" coverage from a store? I'm not finding the right method for that in the Rest api.

Basically what I need is some programatically way to do the same as the "Add Layer" page of geoserver (http://postimg.org/image/iblyc7fgh/), where there is the chance to publish the available store layers, regardless they are already published (when button says 'Publish again') or not (button saying 'Publish').

Regards,
________________________________________
De: simboss1@anonymised.com <simboss1@anonymised.com> en nombre de Simone Giannecchini <simone.giannecchini@anonymised.com>
Enviado: jueves, 05 de mayo de 2016 11:38 a.m.
Para: Jose M
Cc: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] How to check available layers (not already published ) in a store through rest/java API?

Ciao Jose,
quick check, I don't think there is a way to list the layers for a store.

You can list the featuretypes and coverages for a store though.
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 di Montramito 3/A
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 Thu, May 5, 2016 at 4:11 PM, Jose M <soloninguno@anonymised.com> wrote:

Thanks SImone,

Sorry about that I'll post it there.

Nevetherless the question also apply to the rest API, how can I check the list of all available layers in a store, and publish the "not already published" layers? The methods I found in the rest api create the store and publish the layer/s at the same time, and that is not what i need.

Kind regards,
________________________________________
De: simboss1@anonymised.com <simboss1@anonymised.com> en nombre de Simone Giannecchini <simone.giannecchini@anonymised.com>
Enviado: jueves, 05 de mayo de 2016 05:45 a.m.
Para: Jose M
Cc: geoserver-users@lists.sourceforge.net
Asunto: Re: [Geoserver-users] How to check available layers (not already published ) in a store through rest/java API?

Ciao Jose,
this is the wrong list, you should post this question on the geoserver
manager mailing list.

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 di Montramito 3/A
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 Thu, May 5, 2016 at 1:30 AM, Jose M <soloninguno@anonymised.com> wrote:

Hi!

In the "new layer" page of geotools webapp, after selecting a store, there
is a list of all the available layers included in that store, both published
and not published.

How can I check that list and publish the "not already published" layers in
the store through the "geoserver manager" java api (or the rest api)? I'm
not finding the correct method or way to implement that.

All the methods I see in the GeoServerRESTPublisher create the store and
publish the layers at the same time, and i can't use that in my use case.

I was trying to use the
"GeoServerRESTPublisher.configureCoverage(gSCoverageEncoder, workspaceName,
storeName, layerName)" method, but it print an error message saying that
"ERROR GeoServerRESTPublisher:2789 - No coverages found in new coveragestore
XX called ZZ"

I also see that GeoServerRESTReader.existsCoverage(workspaceName, storeName,
layerName) return false if the coverage is not already published.

I'm not finding something similar in the rest api, but maybe i'm missing
something.

Hope someone could help with this!

Regards,

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers
of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users