So I would expect three rules:
*Zoom level <8*
- <sld:MaxScaleDenominator>133.2955989720566</sld: MaxScaleDenominator >
- opacity: 0.6
*Zoom level 8-22*
- <sld:MinScaleDenominator>133.2955989720566</sld:MinScaleDenominator>
- <sld:MaxScaleDenominator>2183915.0935581755</sld:MaxScaleDenominator>
- opacity between 0.6-1.0, based on a interpolate and zoom level function,
does not look like the interpolate functions came out correct
<ogc:Function name="Interpolate">
<ogc:Function name="zoomLevel">
<ogc:Function name="env">
<ogc:Literal>wms_scale_denominator</ogc:Literal>
<ogc:Literal>EPSG:3857</ogc:Literal>
</ogc:Function>
</ogc:Function>
<ogc:/Sub>
<ogc:Literal>8</ogc:Literal>
<ogc:Literal>0.6</ogc:Literal>
<ogc:Literal>22</ogc:Literal>
<ogc:Literal>1.0</ogc:Literal>
<ogc:Literal>numeric</ogc:Literal>
</ogc:Function>
The above Interpolate only works for base 1.0, if a base is supplied the
extension has its own function (say base 0.8):
<ogc:Function name="Exponential">
<ogc:Function name="zoomLevel">
<ogc:Function name="env">
<ogc:Literal>wms_scale_denominator</ogc:Literal>
<ogc:Literal>EPSG:3857</ogc:Literal>
</ogc:Function>
</ogc:Function>
<ogc:/Sub>
<ogc:Literal>0.8</ogc:Literal>
<ogc:Literal>8</ogc:Literal>
<ogc:Literal>0.6</ogc:Literal>
<ogc:Literal>22</ogc:Literal>
<ogc:Literal>1.0</ogc:Literal>
</ogc:Function>
*Zoom level >22*
- <sld: MinScaleDenominator>2183915.0935581755</sld: MinScaleDenominator>
- opacity: 1
--
Jody Garnett
On Fri, 1 Mar 2019 at 09:54, Andrea Aime <[email protected]>
wrote:
> On Fri, Mar 1, 2019 at 6:46 PM Torben Barsballe <
> [email protected]> wrote:
>
>>
>> - I think there's a bug going on in the function parsing. Since you
>> haven't specified a property to interpolate against, its trying to
>> interpolate against zoom level (as per the spec). Since its generating
>> multiple FeatureTypeStyles, it kind of looks like its trying to use the
>> logic from zoom-and-property functions, but I'm not quite sure. Probably
>> needs more debugging
>> - MBStyle primarily delegates to the GeoTools colour converter
>> factories for handling colours. Digging into the code, I'm not seeing hsl
>> support, so I think thats just an unimplemented feature.
>> - Base is only used for exponential interpolation; if it is used in
>> another function type it will be ignored. Also, a base of 1 is equivalent
>> to linear interpolation.
>>
>> For reference, the style is one of the OpenMapTiles one, lots of "base"
> without any other reference, and values other than 1
>
>
> https://github.com/openmaptiles/klokantech-basic-gl-style/blob/master/style.json
>
> 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
> ------------------------------------------------------- *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.*
> _______________________________________________
> GeoTools-Devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel