Hi,
If you are interested in showing temporal series of your polygons, you
could use time dimension, and setting the default value as biggest you will
have the desired result.

On 17 Jan 2018 17:44, "Nuno Oliveira" <nuno.olive...@geo-solutions.it>
wrote:

> It looks like there is some misunderstanding here, maybe I misunderstood
> your problem:
>
>    - app-schema doesn't give you any support for MongoDB, it allows you
>    to use complex features with GeoServer or to comply with a specific XML
>    target schema
>
>
>    - if you want to produce complex features where the data is stored in
>    a MongoDB collection, then you will need App-Schema and MongoDB data stores
>    ... both of them
>
> So if you don't need complex features and only need simple features, like
> when using PostGIS data store, forget about App-Schema.
> If you have your data in a MongoDB data store and you need to publish it
> you will need gt-mongodb GeoTools data store,which unfortunately is not
> available as a GeoServer
> ZIP plugin ... which means that you need to build or download the
> corresponding JAR and add it to your GeoServer installation, pre-build
> binaries are available here:
>
> https://repo.boundlessgeo.com/main/org/geotools/gt-mongodb/
>
> For example if you are using GeoServer 2.12.1 you will need this JAR:
> https://repo.boundlessgeo.com/main/org/geotools/gt-mongodb/
> 18.1/gt-mongodb-18.1.jar
>
> On 01/17/2018 04:17 PM, Cintia Pereira wrote:
>
> Thanks Nuno, I will try to use the app-schema then. I thought that there
> was plugin to mongodb similar to the postgis...
>
> 2018-01-17 8:29 GMT-02:00 Nuno Oliveira <nuno.olive...@geo-solutions.it>:
>
>> I was chatting with Andrea Aime when he pointed out (thanks!) that there
>> is no way to know what is the
>> current time in a CQL filter ... which means that there is no way to
>> filter polygons that have been inserted
>> only in the last five minutes.
>>
>> So I see two options here:
>>
>> 1. you need a collection that will only have the relevant polygons, e.g.
>> some collection that will be updated
>>     by an external service adding recent (last 5 minutes) polygons and
>> removing deprecated ones
>>
>> 2. extend GeoServer CQL filtering support to be able to filter based on
>> the current time
>>
>> Hope it helps.
>>
>>
>> On 01/17/2018 10:05 AM, Nuno Oliveira wrote:
>>
>> Hi,
>>
>> You only App-Schema if you are dealing with complex features or if you
>> need to comply with a specific XML schema,
>> otherwise you only need the mongodb data store, i.e. you only need simple
>> features support.
>>
>> When publishing a MongoDB collection in GeoServer as a layer, by default
>> GeoServer will consider all the data available
>> in the collection. In you case you may want to use a CQL filter [1] to
>> restrict GeoServer to only take into account
>> the polygons that have been inserted in the last 5 minutes.
>>
>> Kind regards,
>>
>> Nuno Oliveira
>>
>> [1] http://docs.geoserver.org/latest/en/user/data/webadmin/layer
>> s.html#restricting-features-showing-up-in-the-layer
>>
>> On 01/17/2018 12:28 AM, Cintia Pereira wrote:
>>
>> Hi all,
>> I have a database in mongodb with polygons, each polygon has a date and
>> new polygons are inserted every five minutes.
>> Now, I'd like to create a layer with the polygons inserted on last five
>> minutes, how can I do this? Should I use app-schema or gt-mongodb plugin?
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>
>>
>>
>> _______________________________________________
>> 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.nethttps://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 <+39%200584%20962313>
>> fax:      +39 0584 1660272 <+39%200584%20166%200272>
>> http://www.geo-solutions.ithttp://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.
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>
>>
>>
>> _______________________________________________
>> 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.nethttps://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 <+39%200584%20962313>
>> fax:      +39 0584 1660272 <+39%200584%20166%200272>
>> http://www.geo-solutions.ithttp://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.
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> 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-req
>> uesting-and-integrating-new-features-and-improvements-in-GeoServer
>>
>>
>> Geoserver-users@lists.sourceforge.net
>> 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 <0584%20962313>
> fax:      +39 0584 1660272 <0584%20166%200272>
> http://www.geo-solutions.ithttp://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.
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> 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
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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

Reply via email to