Re: [Geoserver-users] Problems recreating a layer after a deletion

2024-04-03 Thread Phil Scadden
Thank you! Deleting the featureType allowed me to create again ok.

From: Andrea Aime 
Sent: Tuesday, April 2, 2024 8:47 PM
To: Phil Scadden 
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] Problems recreating a layer after a deletion



CAUTION: This email originated from outside of the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe:
Gut feeling, you might be ignoring the relationship between featuretype and 
layer. While they are separate resources,
you have to delete both of them when performing a remove.


Regards,

Andrea Aime



==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead



GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

mob:   +39  339 8844549


https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

---

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa 
che ogni circostanza inerente alla presente email (il suo contenuto, gli 
eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i 
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per 
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei 
comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed 
and may contain information that is privileged, confidential or otherwise 
protected from disclosure. We remind that - as provided by European Regulation 
2016/679 “GDPR” - copying, dissemination or use of this e-mail or the 
information herein by anyone other than the intended recipient is prohibited. 
If you have received this email by mistake, please notify us immediately by 
telephone or e-mail


On Mon, Apr 1, 2024 at 7:57 AM Phil Scadden 
mailto:p.scad...@gns.cri.nz>> wrote:
I created a layer from a datastore with:
curl -u user:passwd -X POST -H "Content-type: text/xml" -d 
"MylayermylayerMy 
Layer 
wks:myStyleEPSG:2193"
 https://myserver/rest/workspaces/wks/datastores/wks-zl/featuretypes

However, the structure in the postgis datastore so I deleted with:
curl -u user:passwd -X POST -H "Content-type: text/xml"  
https://myserver/rest/layers/wks:Mylayer

Doesn’t show up. However, when I tried recreate with exactly the same POST, I 
get:

Resource named 'Mylayer' already exists in store: 'wks-zl'

Clearly, I did delete wrong, but how do I republish via REST?

Ngā mihi, Nā Phil Scadden (he/him)
Te Raraunga me te Tātaritanga Mokowā Aronuku (Geospatial Data and Analysis)
GNS Science Te Pῡ Ao
13A Alma St, Renwick, 7204
New Zealand Ph +64 27 3463185

“Whāia te iti kahurangi ki te tūohu koe me he maunga teitei”

Notice: This email and any attachments are confidential and may not be used, 
published or redistributed without the prior written consent of the Institute 
of Geological and Nuclear Sciences Limited (GNS Science). If received in error 
please destroy and immediately notify GNS Science. Do not copy or disclose the 
contents.
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Notice: This email and any attachments are confidential and may not be used, 
published or redistributed without the prior written consent of the Institute 
of Geological and Nuclear Sciences Limited (GNS Science). If received in error 
please destroy and immediately notify GNS Science. Do not copy or disclose the 
contents.
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@list

Re: [Geoserver-users] Problems recreating a layer after a deletion

2024-04-02 Thread Andrea Aime
Gut feeling, you might be ignoring the relationship between featuretype and
layer. While they are separate resources,
you have to delete both of them when performing a remove.

Regards,

Andrea Aime


==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax: +39 0584 1660272

mob:   +39  339 8844549

https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

---

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail


On Mon, Apr 1, 2024 at 7:57 AM Phil Scadden  wrote:

> I created a layer from a datastore with:
> curl -u user:passwd -X POST -H "Content-type: text/xml" -d
> "MylayermylayerMy
> Layer
> wks:myStyleEPSG:2193"
> https://myserver/rest/workspaces/wks/datastores/wks-zl/featuretypes
>
>
>
> However, the structure in the postgis datastore so I deleted with:
>
> curl -u user:passwd -X POST -H "Content-type: text/xml"
> https://myserver/rest/layers/wks:Mylayer
>
>
>
> Doesn’t show up. However, when I tried recreate with exactly the same
> POST, I get:
>
>
>
> Resource named 'Mylayer' already exists in store: 'wks-zl'
>
>
>
> Clearly, I did delete wrong, but how do I republish via REST?
>
> 
>
> Ngā mihi, Nā Phil Scadden (he/him)
>
> Te Raraunga me te Tātaritanga Mokowā Aronuku (Geospatial Data and
> Analysis)
>
> *GNS Science* *Te Pῡ Ao*
>
> 13A Alma St, Renwick, 7204
>
> New Zealand Ph +64 27 3463185
>
>
>
> “Whāia te iti kahurangi ki te tūohu koe me he maunga teitei”
>
>
> Notice: This email and any attachments are confidential and may not be
> used, published or redistributed without the prior written consent of the
> Institute of Geological and Nuclear Sciences Limited (GNS Science). If
> received in error please destroy and immediately notify GNS Science. Do not
> copy or disclose the contents.
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Problems recreating a layer after a deletion

2024-03-31 Thread Phil Scadden
I created a layer from a datastore with:
curl -u user:passwd -X POST -H "Content-type: text/xml" -d 
"MylayermylayerMy 
Layer 
wks:myStyleEPSG:2193"
 https://myserver/rest/workspaces/wks/datastores/wks-zl/featuretypes

However, the structure in the postgis datastore so I deleted with:
curl -u user:passwd -X POST -H "Content-type: text/xml"  
https://myserver/rest/layers/wks:Mylayer

Doesn’t show up. However, when I tried recreate with exactly the same POST, I 
get:

Resource named 'Mylayer' already exists in store: 'wks-zl'

Clearly, I did delete wrong, but how do I republish via REST?

Ngā mihi, Nā Phil Scadden (he/him)
Te Raraunga me te Tātaritanga Mokowā Aronuku (Geospatial Data and Analysis)
GNS Science Te Pῡ Ao
13A Alma St, Renwick, 7204
New Zealand Ph +64 27 3463185

“Whāia te iti kahurangi ki te tūohu koe me he maunga teitei”

Notice: This email and any attachments are confidential and may not be used, 
published or redistributed without the prior written consent of the Institute 
of Geological and Nuclear Sciences Limited (GNS Science). If received in error 
please destroy and immediately notify GNS Science. Do not copy or disclose the 
contents.
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users