Re: [Geoserver-users] mongodb layer

2018-01-23 Thread Matteo Cusmai
Hi Cintia,
you are right, this is the drawback of this solution.

On 23 Jan 2018 12:24, "Cintia Pereira"  wrote:

> Hi, I have a last doubt, my table has so many times, when I request a
> getCapabilities I get a timeout I think that´s because the geoserver try to
> calculate de min/max time, how can I solve this?
>
> 2018-01-22 13:05 GMT-02:00 Cintia Pereira :
>
>> Perfect! It's exactly what I need.
>> Thanks.
>>
>> 2018-01-22 7:43 GMT-02:00 Nuno Oliveira :
>>
>>> On 01/22/2018 09:39 AM, Andrea Aime wrote:
>>>
>>> On Mon, Jan 22, 2018 at 10:22 AM, Nuno Oliveira <
>>> nuno.olive...@geo-solutions.it> wrote:
>>>
 The only thing I can think of is a CQL filter that applies the desired
 buffer. CQL filter can be defined per layer:
 http://docs.geoserver.org/latest/en/user/data/webadmin/layer
 s.html#restricting-features-showing-up-in-the-layer

>>>
>>> CQL filter... filters, does not define new fields or change existing
>>> ones :-)
>>>
>>> Good point :)
>>>
>>>
>>> Wondering, are buffers just visual? If so, one can do them in SLD
>>> instead (e.g. a circle symbol size can be defined
>>> in meters)
>>>
>>> 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 <+39%200584%20962313> fax: +39 0584 1660272
>>> <+39%200584%20166%200272> mob: +39  339 8844549 <+39%20339%20884%204549>
>>> 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.
>>>
>>>
>>> --
>>> 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

Re: [Geoserver-users] mongodb layer

2018-01-23 Thread Cintia Pereira
Hi, I have a last doubt, my table has so many times, when I request a
getCapabilities I get a timeout I think that´s because the geoserver try to
calculate de min/max time, how can I solve this?

2018-01-22 13:05 GMT-02:00 Cintia Pereira :

> Perfect! It's exactly what I need.
> Thanks.
>
> 2018-01-22 7:43 GMT-02:00 Nuno Oliveira :
>
>> On 01/22/2018 09:39 AM, Andrea Aime wrote:
>>
>> On Mon, Jan 22, 2018 at 10:22 AM, Nuno Oliveira <
>> nuno.olive...@geo-solutions.it> wrote:
>>
>>> The only thing I can think of is a CQL filter that applies the desired
>>> buffer. CQL filter can be defined per layer:
>>> http://docs.geoserver.org/latest/en/user/data/webadmin/layer
>>> s.html#restricting-features-showing-up-in-the-layer
>>>
>>
>> CQL filter... filters, does not define new fields or change existing ones
>> :-)
>>
>> Good point :)
>>
>>
>> Wondering, are buffers just visual? If so, one can do them in SLD instead
>> (e.g. a circle symbol size can be defined
>> in meters)
>>
>> 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 <+39%200584%20962313> fax: +39 0584 1660272
>> <+39%200584%20166%200272> mob: +39  339 8844549 <+39%20339%20884%204549>
>> 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.
>>
>>
>> --
>> 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 attachme

Re: [Geoserver-users] mongodb layer

2018-01-22 Thread Cintia Pereira
Perfect! It's exactly what I need.
Thanks.

2018-01-22 7:43 GMT-02:00 Nuno Oliveira :

> On 01/22/2018 09:39 AM, Andrea Aime wrote:
>
> On Mon, Jan 22, 2018 at 10:22 AM, Nuno Oliveira <
> nuno.olive...@geo-solutions.it> wrote:
>
>> The only thing I can think of is a CQL filter that applies the desired
>> buffer. CQL filter can be defined per layer:
>> http://docs.geoserver.org/latest/en/user/data/webadmin/layer
>> s.html#restricting-features-showing-up-in-the-layer
>>
>
> CQL filter... filters, does not define new fields or change existing ones
> :-)
>
> Good point :)
>
>
> Wondering, are buffers just visual? If so, one can do them in SLD instead
> (e.g. a circle symbol size can be defined
> in meters)
>
> 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 <+39%200584%20962313> fax: +39 0584 1660272
> <+39%200584%20166%200272> mob: +39  339 8844549 <+39%20339%20884%204549>
> 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.
>
>
> --
> 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, distribu

Re: [Geoserver-users] mongodb layer

2018-01-22 Thread Nuno Oliveira

On 01/22/2018 09:39 AM, Andrea Aime wrote:
On Mon, Jan 22, 2018 at 10:22 AM, Nuno Oliveira > wrote:


The only thing I can think of is a CQL filter that applies the desired 
buffer. CQL filter can
be defined per layer:

http://docs.geoserver.org/latest/en/user/data/webadmin/layers.html#restricting-features-showing-up-in-the-layer




CQL filter... filters, does not define new fields or change existing ones :-)

Good point :)


Wondering, are buffers just visual? If so, one can do them in SLD instead (e.g. a circle symbol 
size can be defined

in meters)

Cheers
Andrea
==

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




--
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

---
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.


---

Re: [Geoserver-users] mongodb layer

2018-01-22 Thread Andrea Aime
On Mon, Jan 22, 2018 at 10:22 AM, Nuno Oliveira <
nuno.olive...@geo-solutions.it> wrote:

> The only thing I can think of is a CQL filter that applies the desired
> buffer. CQL filter can be defined per layer:
> http://docs.geoserver.org/latest/en/user/data/webadmin/layer
> s.html#restricting-features-showing-up-in-the-layer
>

CQL filter... filters, does not define new fields or change existing ones
:-)

Wondering, are buffers just visual? If so, one can do them in SLD instead
(e.g. a circle symbol size can be defined
in meters)

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

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


Re: [Geoserver-users] mongodb layer

2018-01-22 Thread Nuno Oliveira

Hi,
thanks for the feedback.

When you said:

   /Before, my data was in postgis then I created a layer by a query and works/

You mean creating a layer using a SQL query (i.e. an SQL view) ?
http://docs.geoserver.org/stable/en/user/data/database/sqlview.html

If that's the case, well no this will not work with MongoDB, SQL views are only 
available
when the data source is a relational database (Oracle, Postgis, etc ...)

The only thing I can think of is a CQL filter that applies the desired buffer. CQL filter can be 
defined per layer:
http://docs.geoserver.org/latest/en/user/data/webadmin/layers.html#restricting-features-showing-up-in-the-layer 



Hope it helps,

Nuno Oliveira

On 01/20/2018 11:56 PM, Cintia Pereira wrote:

Thanks a lot for all, works!!!
Now, I have other doubt, I have other table with points, but I want to return this points with a 
buffer. Before, my data was in postgis then I created a layer by a query and works, do you have 
any suggest to do this with mongodb?



2018-01-18 13:01 GMT-02:00 Nuno Oliveira >:


Indeed, thanks Matteo !


On 01/18/2018 02:54 PM, Andrea Aime wrote:

Hi Matteo,
that's actually a great idea, and it would also allow to set a default time 
value of
"PT5M/PRESENT" which would
give back the last five minutes of data

Cheers
Andrea


On Wed, Jan 17, 2018 at 9:03 PM, Matteo Cusmai mailto:cusmaimat...@gmail.com>> wrote:

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" mailto: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 
mailto: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. I

Re: [Geoserver-users] mongodb layer

2018-01-20 Thread Cintia Pereira
Thanks a lot for all, works!!!
Now, I have other doubt, I have other table with points, but I want to
return this points with a buffer. Before, my data was in postgis then I
created a layer by a query and works, do you have any suggest to do this
with mongodb?


2018-01-18 13:01 GMT-02:00 Nuno Oliveira :

> Indeed, thanks Matteo !
>
>
> On 01/18/2018 02:54 PM, Andrea Aime wrote:
>
> Hi Matteo,
> that's actually a great idea, and it would also allow to set a default
> time value of "PT5M/PRESENT" which would
> give back the last five minutes of data
>
> Cheers
> Andrea
>
>
> On Wed, Jan 17, 2018 at 9:03 PM, Matteo Cusmai 
> wrote:
>
>> 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" 
>> 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/1
>>> 8.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 
>>> :
>>>
 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-

Re: [Geoserver-users] mongodb layer

2018-01-18 Thread Nuno Oliveira

Indeed, thanks Matteo !

On 01/18/2018 02:54 PM, Andrea Aime wrote:

Hi Matteo,
that's actually a great idea, and it would also allow to set a default time value of 
"PT5M/PRESENT" which would

give back the last five minutes of data

Cheers
Andrea


On Wed, Jan 17, 2018 at 9:03 PM, Matteo Cusmai > wrote:


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" mailto: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 mailto: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/layers.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://ww

Re: [Geoserver-users] mongodb layer

2018-01-18 Thread Andrea Aime
Hi Matteo,
that's actually a great idea, and it would also allow to set a default time
value of "PT5M/PRESENT" which would
give back the last five minutes of data

Cheers
Andrea


On Wed, Jan 17, 2018 at 9:03 PM, Matteo Cusmai 
wrote:

> 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" 
> 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/1
>> 8.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 :
>>
>>> 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%200

Re: [Geoserver-users] mongodb layer

2018-01-17 Thread Matteo Cusmai
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" 
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 :
>
>> 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 r

Re: [Geoserver-users] mongodb layer

2018-01-17 Thread Nuno Oliveira

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 >:


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/layers.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.net 

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



-- 
Regards,

Nuno Oliveira
==
GeoServer Professional Services from the experts! Visithttp://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 


Re: [Geoserver-users] mongodb layer

2018-01-17 Thread Cintia Pereira
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 :

> 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/
> layers.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

Re: [Geoserver-users] mongodb layer

2018-01-17 Thread Nuno Oliveira

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/layers.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.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


--
Regards,
Nuno Oliveira
==
GeoServer Professional Services from the experts! Visithttp://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

---
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 postin

Re: [Geoserver-users] mongodb layer

2018-01-17 Thread Nuno Oliveira

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/layers.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.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
fax:  +39 0584 1660272

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.


--
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


[Geoserver-users] mongodb layer

2018-01-16 Thread Cintia Pereira
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.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users