<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Projection issue with vrt file</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi All,<BR>
<BR>
I'm trying to add a VRT raster file (BSB chart) to my mapfile, but it doesn't work totally.<BR>
In fact, all of my tiles are generated, but they have no data...&nbsp; No error is logged...<BR>
<BR>
It sounds like the projection or the transformation matrix is not well supported, or not well configured.<BR>
<BR>
If I put in comments the GeoTransform element, some blank tiles are shown where the lower left corner is located at the origin (0.000, 0.000).<BR>
<BR>
Moreover, I successfully opened that same VRT file with QGIS, and the projection is ok...<BR>
<BR>
A copy of my VRT file is shown just after my message...<BR>
<BR>
Here is a snippet of my mapfile:<BR>
<BR>
&nbsp; LAYER<BR>
&nbsp;&nbsp;&nbsp; NAME &quot;131701&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GROUP &quot;BSB&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #EXTENT -70.980392 46.777300 -70.191770 47.279794<BR>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DATA &quot;BSB/131701.vrt&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TYPE RASTER<BR>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; STATUS OFF<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CLASS<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NAME 'BSB'<BR>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END<BR>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; METADATA<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WMS_TITLE &quot;BSB&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; WMS_SRS &quot;EPSG:4326 EPSG:29450 EPSG:2949 EPSG:32187 EPSG:32188 EPSG:900913&quot;<BR>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; END&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp; END<BR>
<BR>
Thanks in advance for your support,<BR>
<BR>
Marc-Andre<BR>
<BR>
---------------------<BR>
<BR>
<BR>
&lt;VRTDataset rasterXSize=&quot;11388&quot; rasterYSize=&quot;8091&quot;&gt;<BR>
&nbsp; &lt;SRS&gt;+proj=merc +lat_ts=47.166667 +datum=NAD83 +nodefs&lt;/SRS&gt;<BR>
&lt;GeoTransform&gt;-5.3802490306424974e+006, 5.0001511315648770e+000,-1.8211665160056521e-004, 4.0492551038299361e+006,-2.5595698020313497e-004,-5.0010081232801378e+000&lt;/GeoTransform&gt;<BR>
&nbsp; &lt;Metadata&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;MDI key=&quot;BSB_KNP&quot;&gt;SC=50000,GD=NAD83,PR=MERCATOR,PP=47.166667,PI=5.000000,SP=,SK=0.000000,TA=90.000000,UN=METRES,SD=LNT,DX=5.000000,DY=5.000000&lt;/MDI&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;MDI key=&quot;BSB_KNQ&quot;&gt;EC=RF,GD=NAR,VC=ZZZ,SC=ZZZ,PC=MC,P1=-70.582029,P2=47.166667,P3=0.0,P4=NOT_APPLICABLE,GC=GE,RM=NONE&lt;/MDI&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;MDI key=&quot;CUTLINE&quot;&gt;MULTIPOLYGON(((257.76284645559468 7745.7076975815671,2490.025011025306 7746.5301512821934,2492.2163879532559 7181.6425479723066,3276.1412438760321 7210.5951029770404,4429.0270760545409 6817.9091369725729,4890.9737230091405 6736.5650032022368,11250.811878184026 354.19735628215676,11251.785400765162 244.45756921568665,3537.7418346315158 244.33482436588929,3523.5069250460119 2029.8367618071302,1881.7430005409099 2028.8818991008357,1868.6640235103462 2447.8575431625686,258.92730402280057 2434.9666589315798)))&lt;/MDI&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;MDI key=&quot;DESCRIPTION&quot;&gt;SAULT-AU-COCHON À/TO QUÉBEC&lt;/MDI&gt;<BR>
&nbsp; &lt;/Metadata&gt;<BR>
&nbsp; &lt;GCPList Projection=&quot;+proj=merc +lat_ts=47.166667 +datum=NAD83 +nodefs&quot;&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;1&quot; Pixel=&quot;259.0000&quot; Line=&quot;7746.0000&quot; X=&quot;-5.378954975641E+006&quot; Y=&quot;4.010515470308E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;2&quot; Pixel=&quot;4892.0000&quot; Line=&quot;7746.0000&quot; X=&quot;-5.355789271702E+006&quot; Y=&quot;4.010515470308E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;3&quot; Pixel=&quot;4892.0000&quot; Line=&quot;6736.0000&quot; X=&quot;-5.355789271702E+006&quot; Y=&quot;4.015564569030E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;4&quot; Pixel=&quot;11252.0000&quot; Line=&quot;354.0000&quot; X=&quot;-5.323986290417E+006&quot; Y=&quot;4.047476941272E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;5&quot; Pixel=&quot;11252.0000&quot; Line=&quot;244.0000&quot; X=&quot;-5.323986290417E+006&quot; Y=&quot;4.048033445911E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;6&quot; Pixel=&quot;259.0000&quot; Line=&quot;244.0000&quot; X=&quot;-5.378954975641E+006&quot; Y=&quot;4.048033445911E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;7&quot; Pixel=&quot;9527.0000&quot; Line=&quot;986.0000&quot; X=&quot;-5.332614722193E+006&quot; Y=&quot;4.044323691092E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;8&quot; Pixel=&quot;7000.0000&quot; Line=&quot;986.0000&quot; X=&quot;-5.345251249970E+006&quot; Y=&quot;4.044323691092E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;9&quot; Pixel=&quot;4472.0000&quot; Line=&quot;986.0000&quot; X=&quot;-5.357887777748E+006&quot; Y=&quot;4.044323691092E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;10&quot; Pixel=&quot;1945.0000&quot; Line=&quot;986.0000&quot; X=&quot;-5.370524305526E+006&quot; Y=&quot;4.044323691092E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;11&quot; Pixel=&quot;8263.0000&quot; Line=&quot;2837.0000&quot; X=&quot;-5.338932986081E+006&quot; Y=&quot;4.035066484912E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;12&quot; Pixel=&quot;5736.0000&quot; Line=&quot;2837.0000&quot; X=&quot;-5.351569513859E+006&quot; Y=&quot;4.035066484912E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;13&quot; Pixel=&quot;3208.0000&quot; Line=&quot;2837.0000&quot; X=&quot;-5.364206041637E+006&quot; Y=&quot;4.035066484912E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;14&quot; Pixel=&quot;681.0000&quot; Line=&quot;2837.0000&quot; X=&quot;-5.376842569415E+006&quot; Y=&quot;4.035066484912E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;15&quot; Pixel=&quot;4472.0000&quot; Line=&quot;4685.0000&quot; X=&quot;-5.357887777748E+006&quot; Y=&quot;4.025823838111E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;16&quot; Pixel=&quot;1945.0000&quot; Line=&quot;4685.0000&quot; X=&quot;-5.370524305526E+006&quot; Y=&quot;4.025823838111E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;17&quot; Pixel=&quot;3209.0000&quot; Line=&quot;6531.0000&quot; X=&quot;-5.364206041637E+006&quot; Y=&quot;4.016595685774E+006&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;GCP Id=&quot;18&quot; Pixel=&quot;682.0000&quot; Line=&quot;6531.0000&quot; X=&quot;-5.376842569415E+006&quot; Y=&quot;4.016595685774E+006&quot; /&gt;<BR>
&nbsp; &lt;/GCPList&gt;<BR>
&nbsp; &lt;VRTRasterBand dataType=&quot;Byte&quot; band=&quot;1&quot;&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;Metadata /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;ColorInterp&gt;Palette&lt;/ColorInterp&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;ColorTable&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;0&quot; c2=&quot;0&quot; c3=&quot;0&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;255&quot; c2=&quot;255&quot; c3=&quot;255&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;255&quot; c2=&quot;214&quot; c3=&quot;140&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;107&quot; c2=&quot;165&quot; c3=&quot;222&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;182&quot; c2=&quot;213&quot; c3=&quot;240&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;100&quot; c2=&quot;160&quot; c3=&quot;140&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;0&quot; c2=&quot;86&quot; c3=&quot;158&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;75&quot; c2=&quot;75&quot; c3=&quot;75&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;123&quot; c2=&quot;8&quot; c3=&quot;90&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;100&quot; c2=&quot;100&quot; c3=&quot;100&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;243&quot; c2=&quot;137&quot; c3=&quot;71&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;44&quot; c2=&quot;99&quot; c3=&quot;207&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;245&quot; c2=&quot;255&quot; c3=&quot;80&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;Entry c1=&quot;255&quot; c2=&quot;0&quot; c3=&quot;0&quot; c4=&quot;255&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;/ColorTable&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;SimpleSource&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SourceFilename relativeToVRT=&quot;0&quot;&gt;E:\ms4w\apps\marinfo\data\BSB\131701.kap&lt;/SourceFilename&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SourceBand&gt;1&lt;/SourceBand&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SourceProperties RasterXSize=&quot;11388&quot; RasterYSize=&quot;8091&quot; DataType=&quot;Byte&quot; BlockXSize=&quot;11388&quot; BlockYSize=&quot;1&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;SrcRect xOff=&quot;0&quot; yOff=&quot;0&quot; xSize=&quot;11388&quot; ySize=&quot;8091&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DstRect xOff=&quot;0&quot; yOff=&quot;0&quot; xSize=&quot;11388&quot; ySize=&quot;8091&quot; /&gt;<BR>
&nbsp;&nbsp;&nbsp; &lt;/SimpleSource&gt;<BR>
&nbsp; &lt;/VRTRasterBand&gt;<BR>
&lt;/VRTDataset&gt;<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>