Mapfile
=======
MAP
NAME "superoverlay"
STATUS ON
SIZE 400 300
EXTENT -122.1293127 37.3727086 -122.0593424 37.4398034
UNITS DD
IMAGECOLOR 255 255 255
LAYER
NAME "mountain-view-superoverlay"
TYPE RASTER
STATUS ON
#DATA "mv-doqq.kml"
DATA
"/vsicurl/http://mw1.google.com/mw-earth-vectordb/kml-samples/mv-doqq.kml"
CLASS
NAME "Superoverlay"
STYLE
END
END
END # layer
END # Map File
Test1: MapServer with superoverlay+VSICURL, on Windows
======================================================
shp2img -m superoverlay-kml.map -o ttt.png -all_debug 5
result (fail)
-------------
msLoadMap(): 0.000s
msDrawMap(): rendering using outputformat named png (AGG/PNG).
msDrawMap(): WMS/WFS set-up and query, 0.000s
msDrawRasterLayerLow(mountain-view-superoverlay): entering.
msDrawRasterLayerGDAL(): Entering transform.
msDrawRasterLayerGDAL(): src=0,0,16384,16384, dst=44,0,312,300
msDrawRasterLayerGDAL(): source raster PL (-4.888,-27.409) for dst PL
(44,0).
msDrawRasterLayerGDAL(): red,green,blue,alpha bands = 1,2,3,4
drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed:
/vsimem/kmlsuperoverlay/3
_085CA378, band 1: Illegal nBlockXOff value (2) in
GDALRasterBand::GetLockedBlockRef()
msDrawMap(): Image handling error. Failed to draw layer named
'mountain-view-superoverlay'
.
msDrawMap(): Image handling error. Failed to draw layer named
'mountain-view-superoverlay'
. <br>
drawGDAL(): Unable to access file. GDALDatasetRasterIO() failed:
/vsimem/kmlsuperoverlay/3
_085CA378, band 1: Illegal nBlockXOff value (2) in
GDALRasterBand::GetLockedBlockRef()
<br>
msFreeMap(): freeing map at 061BA7F0.
freeLayer(): freeing layer at 07273208.
Test2: MapServer with superoverlay+VSICURL, on Ubuntu
======================================================
$ shp2img -m superoverlay-kml.map -o ttt.png -all_debug 5
result (success)
----------------
[Thu Jan 14 18:20:02 2016].525687 msLoadMap(): 0.000s
[Thu Jan 14 18:20:02 2016].525906 msDrawMap(): rendering using
outputformat named png (AGG/PNG).
[Thu Jan 14 18:20:02 2016].525919 msDrawMap(): WMS/WFS set-up and query,
0.000s
[Thu Jan 14 18:20:02 2016].527354
msDrawRasterLayerLow(mountain-view-superoverlay): entering.
[Thu Jan 14 18:20:11 2016].774926 msDrawRasterLayerGDAL(): Entering
transform.
[Thu Jan 14 18:20:11 2016].774950 msDrawRasterLayerGDAL():
src=0,0,16384,16384, dst=44,0,312,300
[Thu Jan 14 18:20:11 2016].774955 msDrawRasterLayerGDAL(): source raster
PL (-4.888,-27.409) for dst PL (44,0).
[Thu Jan 14 18:20:11 2016].774969 msDrawRasterLayerGDAL():
red,green,blue,alpha bands = 1,2,3,4
[Thu Jan 14 18:20:13 2016].225477 msDrawMap(): Layer 0
(mountain-view-superoverlay), 10.700s
[Thu Jan 14 18:20:13 2016].225507 msDrawMap(): Drawing Label Cache, 0.000s
[Thu Jan 14 18:20:13 2016].225512 msDrawMap() total time: 10.700s
[Thu Jan 14 18:20:13 2016].244934 msSaveImage(ttt.png) total time: 0.019s
[Thu Jan 14 18:20:13 2016].244971 msFreeMap(): freeing map at 0x15256f0.
[Thu Jan 14 18:20:13 2016].244994 freeLayer(): freeing layer at 0x152d120.
[Thu Jan 14 18:20:13 2016].245030 shp2img total time: 10.720s
-jeff