Hi,
a similar question was posted lately... somewhere (can't remember if here
or on stackoverflow).

Basically what seems to be happening (from a cursory look in the code), is
that rendering transformations
generating raster data do not benefit from the "advanced projection
handling" and "dateline wrapping"
machinery, as such they can only render the true source locations, but do
not get replicated across the dateline.

If you want, you can open a ticket on our bug tracker and ask for an
improvement on this.
The best way to get the change actually happen in the short term is to
either code it yourself (I can give you
pointers on how that could be done) or sponsor someone to do it for you,
you can check http://geoserver.org/support/

Cheers
Andrea



On Sat, Nov 24, 2018 at 12:47 AM Lubomír Bucek <[email protected]> wrote:

> Hello!
> I am not really sure if this is the right place to report it, or geotools
> repository would be more appropriate.
> I am using Ras:Jiffle operation on GeoServer layer in SLD style, but when
> the processing area of Ras:Jiffle is larger than SRS bounds - crossing
> datetime line for webmercator for example, the raster is visible only
> inside the SRS bounds, even though other elements are correctly visible.
> First image shows global pressure with cut raster on date line.
> (webmercator) This example layer uses Jiffle.
> https://www.dropbox.com/s/7yi3fg1zjb58fed/pressure.png?dl=0
> Second image shows global temperature. This example layer does not use
> Jiffle.
> https://www.dropbox.com/s/b09t4v3bbjrrggg/temp.png?dl=0
>
> Queried BBOX is extended webmercator BBOX in the X coordinate around 1.5
> times and is the same for both examples:
> &bbox=-3.00360832789244E7%2C-2.00496140146E7%2C3.00375042789244E7%2C2.005866104014594E7
>
> Part of SLD style for pressure: Jiffle for example divides pressure by
> 100. Contours are drawn outside of bbox even though Jiffle is used for them
> too, while ColorMap is not.
> <FeatureTypeStyle>
>         <Transformation>
>           <ogc:Function name="ras:Jiffle">
>             <ogc:Function name="parameter">
>               <ogc:Literal>coverage</ogc:Literal>
>             </ogc:Function>
>             <ogc:Function name="parameter">
>               <ogc:Literal>script</ogc:Literal>
>               <ogc:Literal>
>                 pres = src[0];
>                 dest = pres / 100.0;
>               </ogc:Literal>
>             </ogc:Function>
>           </ogc:Function>
>         </Transformation>
>         <Rule>
>           <RasterSymbolizer>
>             <Opacity>0.4</Opacity>
>             <ColorMap>
>               <ColorMapEntry color="#FFFFFF" quantity="950" opacity="1" />
>               <ColorMapEntry color="#9380F7" quantity="960" opacity="1" />
>               <ColorMapEntry color="#7986f8" quantity="970" opacity="1" />
>               <ColorMapEntry color="#6EB7F8" quantity="980" opacity="1" />
>               <ColorMapEntry color="#60CDF6" quantity="985" opacity="1" />
>               <ColorMapEntry color="#51F1F4" quantity="990" opacity="1" />
>               <ColorMapEntry color="#3BF49D" quantity="995" opacity="1" />
>               <ColorMapEntry color="#9AF32D" quantity="1000" opacity="1" />
>               <ColorMapEntry color="#DAF32B" quantity="1005" opacity="1" />
>               <ColorMapEntry color="#F3CA27" quantity="1010" opacity="1" />
>               <ColorMapEntry color="#F2641E" quantity="1015" opacity="1" />
>               <ColorMapEntry color="#DD151E" quantity="1020" opacity="1" />
>               <ColorMapEntry color="#85093E" quantity="1030" opacity="1" />
>               <ColorMapEntry color="#180112" quantity="1040" opacity="1" />
>             </ColorMap>
>           </RasterSymbolizer>
>         </Rule>
>       <FeatureTypeStyle>
>       </FeatureTypeStyle>
>         <Transformation>
>           <ogc:Function name="ras:Contour">
>             <ogc:Function name="parameter">
>               <ogc:Literal>data</ogc:Literal>
>               <ogc:Function name="ras:Jiffle">
>                 <ogc:Function name="parameter">
>                   <ogc:Literal>coverage</ogc:Literal>
>                 </ogc:Function>
>                 <ogc:Function name="parameter">
>                   <ogc:Literal>script</ogc:Literal>
>                   <ogc:Literal>
>                     pres = src[0];
>                     dest = pres / 100.0;
>                   </ogc:Literal>
>                 </ogc:Function>
>               </ogc:Function>
>             </ogc:Function>
>             <ogc:Function name="parameter">
>               <ogc:Literal>levels</ogc:Literal>
>               levels...
>
> Is it just that I should specify something inside the Jiffle code block to
> display the raster even outside SRS bounds or is this expected behaviour?
> Thanks for maybe shedding some light into this mystery.
>
> Best,
> Lubomir Bucek
> _______________________________________________
> 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
>
>
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 

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


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

Reply via email to