[Geoserver-users] [Geoserver-devel] Recalculate Feature Bounding Box REST API

Please visit the user list to ask, the developers list is used for those working directly on the codebase.

For more information see http://geoserver.org/comm/

Since you are running in debug mode you have a checkout of the codebase. Have a look at the test-cases to see what works (perhaps we have a documentation fix to make).

···


Jody Garnett

Thanks for your answer.

I found out on another site that I have to pass an XML body which looks like
this :

<featureType><name>featuretypeName</name><enabled>true</enabled></featureType>

There's absoluteley no mention of this in the documentation.

Now It seems that there's a bug in 2.12.1 :

I update the bounds via REST. I get 200 OK.

If I try to update the same layer again I get 404 Not found. It seems like
the featuretype name has been changed.

I don't have this problem with 2.12.2

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

Hi

I'm having a similar issue. What is the site you were looking at?

Dominique

-----Original Message-----
From: Olyster <gagnon_olivier@anonymised.com>
Sent: Wednesday, October 3, 2018 5:53 AM
To: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] [Geoserver-devel] Recalculate Feature Bounding Box REST API

Thanks for your answer.

I found out on another site that I have to pass an XML body which looks like this :

<featureType><name>featuretypeName</name><enabled>true</enabled></featureType>

There's absoluteley no mention of this in the documentation.

Now It seems that there's a bug in 2.12.1 :

I update the bounds via REST. I get 200 OK.

If I try to update the same layer again I get 404 Not found. It seems like the featuretype name has been changed.

I don't have this problem with 2.12.2

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

_______________________________________________
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

unfortunately I can't find the exact site %?$/

just use postman and pass
<featureType><name>featuretypeName</name><enabled>true</enabled></featureType>

as an xml body as text/xml with autorization and content type (text/xml)
header

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

Hi,
I don’t have much experience with the rest api module, but I’m wondering… you’re not really using “featuretypeName”, verbatim, in the request,
but you are setting the actual typename that you’re trying to modify, right?
Silly question I know, but if you were to use it verbatim, it would explain the other errors you’re seeing, since that request used verbatim changes the
type name from whatever it is, to “featuretypeName”

Cheers
Andrea

···

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it 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.

Andrea,

you are right : I use the actuel featuretype name and *NOT* the string
"featuretypeName".

As stated I don't have this problem with 2.12.2 so I think it may be a
solved bug.

Let me know if you find anything with the problem Schema "SchemaName" does
not exist after the first recalulation via REST. I don't know if I mentioned
it but if I perform the recalculation with the web console, I can perform it
again one time using REST.

Thanks

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html

2.12.x is dead and unsupported, please upgrade to at least 2.13.x
We cannot provide help on outdated versions (not enough people here trying to help users,
not enough developers either). With more people we could do more, but we’re restricted
to the little that we have available.

Cheers
Andrea

···

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it 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.

Andrea,

I will perform the upgrade to 2.14.

I'm a developer. I'll help out by answering all the questions for which I
know the answer or at least things to try to eventually get to the solution.

Thanks for your help

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html