Re: [Geoserver-devel] Issue with CQL intersect performance

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [Geoserver-devel] Issue with CQL intersect performance

jody.garnett
Please make use of the user list for questions on the use of GeoServer.

The developer list is focused on those working directly on the codebase (you are welcome to help out if you like). For more information please see the geoserver website page
--
Jody Garnett


On Mon, 5 Aug 2019 at 18:57, guilhermecanton <[hidden email]> wrote:
I have a layer of mining processes in geoserver
I need to implement a functionality where the user can filter mining
processes from a shape file.
This shape file contains 15 polygons and each polygon contains approximately
30k coordinates.
I'm using a post request and sending the 30k coordinates in a CQL, like the
one below.
cql = "INTERSECTS(the_geom, POLYGON((-40.9266886103044 -16.262666496441046,
-40.90549282420962 -16.263061436643454, -40.905472448859044
-16.263441492330248, -40.90229656699312 -16.267723288825366,
-40.90024952920471 -16.278586398087867... + 30k coordinates)
But the return is very slow. Because I have 15 polygons that perform this
CQL, with their respective coordinates.
Is there any better way to do this?
Sorry about my english lol
Thanks in advance



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-Dev-f3819232.html


_______________________________________________
Geoserver-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


_______________________________________________
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: [Geoserver-devel] Issue with CQL intersect performance

Nuno Oliveira-3
Just notice this was in the DEV ML, this is a question for the GS user ML. 

On Tue, 2019-08-06 at 11:09 +0100, Nuno Oliveira wrote:
Hi,
you may want to have a look at:

A few comments:
  • is the first layer in a database? 
  • sending a CQL filter with 15 polygons with more than 30K coordinates each will be slow to POST and for GeoServer to parse ... you need to avoid this POST
  • in terms of execution, some simplification of the polygons should be made

Hope it helps,
Nuno Oliveira

On Mon, 2019-08-05 at 15:58 -0700, guilhermecanton wrote:
I have a layer of mining processes in geoserver
I need to implement a functionality where the user can filter mining
processes from a shape file.
This shape file contains 15 polygons and each polygon contains approximately
30k coordinates.
I'm using a post request and sending the 30k coordinates in a CQL, like the
one below.
cql = "INTERSECTS(the_geom, POLYGON((-40.9266886103044 -16.262666496441046,
-40.90549282420962 -16.263061436643454, -40.905472448859044
-16.263441492330248, -40.90229656699312 -16.267723288825366,
-40.90024952920471 -16.278586398087867... + 30k coordinates)
But the return is very slow. Because I have 15 polygons that perform this
CQL, with their respective coordinates.
Is there any better way to do this?
Sorry about my english lol
Thanks in advance



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-Dev-f3819232.html


_______________________________________________
Geoserver-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
-- 
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.
-- 
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: [Geoserver-devel] Issue with CQL intersect performance

Nuno Oliveira-3
In reply to this post by jody.garnett
+1
On Mon, 2019-08-05 at 23:25 -0700, Jody Garnett wrote:
Please make use of the user list for questions on the use of GeoServer.

The developer list is focused on those working directly on the codebase (you are welcome to help out if you like). For more information please see the geoserver website page
--
Jody Garnett


On Mon, 5 Aug 2019 at 18:57, guilhermecanton <[hidden email]> wrote:
I have a layer of mining processes in geoserver
I need to implement a functionality where the user can filter mining
processes from a shape file.
This shape file contains 15 polygons and each polygon contains approximately
30k coordinates.
I'm using a post request and sending the 30k coordinates in a CQL, like the
one below.
cql = "INTERSECTS(the_geom, POLYGON((-40.9266886103044 -16.262666496441046,
-40.90549282420962 -16.263061436643454, -40.905472448859044
-16.263441492330248, -40.90229656699312 -16.267723288825366,
-40.90024952920471 -16.278586398087867... + 30k coordinates)
But the return is very slow. Because I have 15 polygons that perform this
CQL, with their respective coordinates.
Is there any better way to do this?
Sorry about my english lol
Thanks in advance



--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-Dev-f3819232.html


_______________________________________________
Geoserver-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

_______________________________________________
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


[hidden email]
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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: [Geoserver-devel] Issue with CQL intersect performance

guilhermecanton
In reply to this post by Nuno Oliveira-3
About "is the first layer in a database?"
The mining processes is a unique layer in the geoserver.
The shapefile that i need do intersect, I get it from a geojson

About "you need to avoid this POST".
How i can do this without post request?

Thanks for help!!



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


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users