[mapserver-commits] [mapserver/mapserver] eeb1e7: msProjectionsDiffer(): use proj4 string normalizat...
GitHub
noreply at github.com
Tue Dec 16 07:30:25 PST 2014
Branch: refs/heads/master
Home: https://github.com/mapserver/mapserver
Commit: eeb1e786a36e594ae8133f7a6d5b127175894952
https://github.com/mapserver/mapserver/commit/eeb1e786a36e594ae8133f7a6d5b127175894952
Author: Even Rouault <even.rouault at mines-paris.org>
Date: 2014-12-16 (Tue, 16 Dec 2014)
Changed paths:
M mapproject.c
Log Message:
-----------
msProjectionsDiffer(): use proj4 string normalization
If regular comparison detects a difference, then asks proj.4 to
return a proj string after it has resolved stuff like +init=epsg:XXXX.
This helps msDrawRasterLayerLow() figuring out that "init=epsg:3857"
and "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +units=m +k=1.0 +nadgrids=@null"
as defined in maptile.h are indeed the same projection, to avoid
going to the slow resampling path.
I have tried instead to put that normalization logic into msProcessProjection()
itself but altering the p->args cause issues in a number of other
places.
Commit: 5a22ae7b4f10f3e6b93e6ba842bc90d21a5ae1b9
https://github.com/mapserver/mapserver/commit/5a22ae7b4f10f3e6b93e6ba842bc90d21a5ae1b9
Author: Even Rouault <even.rouault at mines-paris.org>
Date: 2014-12-16 (Tue, 16 Dec 2014)
Changed paths:
M mapresample.c
Log Message:
-----------
msResampleGDALToMap(): optimizations for tiled queries
If requesting at the raster resolution, on pixel boundaries,
and no reprojection is involved, we don't need any resampling.
And if coordinates and dimensions match an integral subsampling
factor, no need to add pixel margin.
This optimization helps a lot when operating with mode=tile
and that the underlying raster is tiled and share the same
tiling scheme as the queried tile mode.
Compare: https://github.com/mapserver/mapserver/compare/6f1b34af5947...5a22ae7b4f10
More information about the mapserver-commits
mailing list