Hi,
> One solution that helps - PUT request to /rest/reset
> (docs).
That reset is in GeoServer global point of view, int he case of MongoDB
you need to rebuild the schema.
1. > Also I found a ticket in GeoServer tracker that is about subject. But
> it's status is "open" (so nothing from ticket's description works).
This is for PostGIS, and indeed not implemented.
Anyway, the functionality you need has been recently implemented, the
REST end-points only works in the context of App-Schema:
https://osgeo-org.atlassian.net/browse/GEOS-9241
https://docs.geoserver.org/latest/en/api/#/latest/en/api/1.0.0/datastor
es.yaml
The changes will be available in GS: 2.15.3 and 2.16.RC
You have two options:
- delete the JSON schema [1], and hope that the rebuild will have your
elements:
- the new functionalities allow you to insert the number of MongoDB
elements that shoudl be used
- manually edit the JSON schema
Note, REST end-points could be created for MongoDB stores.
Hope it helps,
[1] https://docs.geotools.org/latest/userguide/library/data/mongodb.htm
l
On Thu, 2019-07-25 at 17:52 +0300, Artem Groznykh wrote:
> Hi.> > I made a layer using mongoDB datastore on some collection.
> Then structure of the collection was changed. So I edited mapping for that
> collection.
> > How can I refresh attributes of that layer via REST API?
> > I found two answers:
1. > One solution that helps - PUT request to /rest/reset (docs).
2. > Also I found a ticket in GeoServer tracker that is about subject. But
it's status is "open" (so nothing from ticket's description works).
> Is there a way to refresh attributes via REST API just for a layer. Or first
> solution is the only and correct for my purpose.
> > I use:
> - Windows 7
> - GeoServer 2.15.2
> - MongoDB 3.6
> - MongoDB driver for GS 2.15.2
> >
> >
> > >
> > Без вирусов. www.avast.ru >
> >
>
> _______________________________________________
> 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
>
>
>
>
[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-users>
--
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the
experts!
Visit http://goo.gl/it488V for more information.
==
Nuno Miguel Carvalho Oliveira
@nmcoliveira
Software Engineer
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
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.
_______________________________________________
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users