Changes between Version 5 and Version 6 of WorldMappingIssues


Ignore:
Timestamp:
Feb 9, 2010, 10:23:04 AM (14 years ago)
Author:
warmerdam
Comment:

add +over note.

Legend:

Unmodified
Added
Removed
Modified
  • WorldMappingIssues

    v5 v6  
    1515== BBOX Transformation ==
    1616
    17 One fairly common use case is maps rendered in projected coordinates but read from geographic raster sources (sometimes a cascaded WMS).  In these cases the projected map region needs to be reprojected into lat/long and used to fetch raster data for resampling.  If the projected rectangle crosses the dateline it is easy to end up requesting a window of data that wraps around the world.  This wouldn't be so bad, but because MapServer tries to request raster data from remote WMSes or raster files at roughly the size of the output map it ends up getting much lower resolution data in the actual area of interest than will be needed to render well.  This problem is addresed in #3179.
     17One fairly common use case is maps rendered in projected coordinates but read from geographic raster sources (sometimes a cascaded WMS).  In these cases the projected map region needs to be reprojected into lat/long and used to fetch raster data for resampling.  If the projected rectangle crosses the dateline it is easy to end up requesting a window of data that wraps around the world.  This wouldn't be so bad, but because MapServer tries to request raster data from remote WMSes or raster files at roughly the size of the output map it ends up getting much lower resolution data in the actual area of interest than will be needed to render well.  This problem is addressed in #3179.
     18
     19The most important outcome of this investigation is that PROJ.4 supports a +over flag that disables the wrapping of longitude into the range -180 to 180 by PROJ.4.  This means that projected values east of the -180 dateline will be returned as longitudes less than -180 rather than wrapping around to +180.  This makes all sorts of bounding rectangle and other issues much smoother.
     20
     21eg.
     22{{{
     23PROJECTION
     24  "+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=6378137 +b=6378137 +units=m +over +no_defs"
     25END
     26}}}
    1827
    1928== Some Related Tickets ==