For a tiled layer in a small zoom level, all the features may be rendered which will take too much time and make the map un-readable.
While our data contains a property named “level” which means that this feature should be visible only when the map zoom equal and great than that value, I wonder if geoserver can be configured to make this property take effect?
Use a SLD with rules, having scale denominators and filters. Yes, it applies to Mapbox Vector Tiles too (symbolizers are
ignored, but rules are used).
Cheers
Andrea
···
Regards, Andrea Aime
== GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.ithttp://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.
“Using SLD rules” means that the data have been retrieved from the server which is a waste of server resource and network traffic if too many features are served. Also if the number of the features are large enough, the server may hang. I’d like the feature can be filtered in the server.
I think than the only way you could do this on database side is to have one layer for each of your level, the layer being responsible for defining a SQL query to request the right level of detail you want.
Attach to the layer you have a style defining the scales for which the style must apply.
You can then group all the layers in one layer group you will use as end-point for your map client.
Neither is true. GeoServer uses the SLD associated to a layer to build queries to the database (within reason, a SQL statement has lengths limits).
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.ithttp://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.
Neither is true. GeoServer uses the SLD associated to a layer to build queries to the database (within reason, a SQL statement has lengths limits).
OK, I’ll have a try. Also,is it possible to determine the features to be rendered by geoserver itself(filter and simplify the feature according to the current scale) in case of the feature does not have a property to identify that?
The natural earth dataset for example has a scale rank attribute, which is used to indicate which features to display at specific zoom levels. You end up creating rules that select content (based on scale rank) and are enabled (based on min / max scale range).