Hi Torben,

The implications of setting `global: true` are that OpenLayers assumes
the projection extent to span the world from -180° to +180° longitude.
Both potential fixes you linked will cause unexpected results for
projections whose validity extent does not span the globe in
longitudinal direction.

One approach that could work is that you try to reproject the
projection validity extent to EPSG:4326 and see if the reprojected
extent goes from -180 to +180 in x direction. But there will also be
pitfalls with this for e.g. polar projections.

My recommendation would be to not consider the current behaviour a
bug, and make the GeoServer preview not wrap the globe at all.
Instead, configure the map's view with the projection's validity
extent, so the map center will always be within the validity extent.

I hope this helps.

Andreas.

On Tue, Aug 9, 2016 at 10:58 PM, Torben Barsballe
<[email protected]> wrote:
> Hello Bart/Andreas
>
> When creating a new ol.proj.Projection, what are the functional implications
> of setting "global: true"? The OL3 docs are not especially clear on this.
>
> I am fixing a bug in the GeoServer OL3 preview when in tiled mode the map
> preview does not wrap the globe. I have two potential fixes:
> https://github.com/geoserver/geoserver/pull/1701/files
> https://github.com/geoserver/geoserver/pull/1702/files
>
> I am trying to determine the implications of the former fix, in order to
> decide which one to apply to geoserver.
>
> Thanks,
>
> Torben
>
>



-- 
Andreas Hocevar
Geospatial Solutions Engineer | Boundless
[email protected]
917-460-7194
@boundlessgeo

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to