<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:FR;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I think you configured it correctly.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Although the MG4 lidar SDK can be made to read .las files, the GDAL MG4Lidar driver only knows how to read .sid files (and .view files – see docs).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I don’t believe there is a way to read .las files using GDAL right now. You’ll probably need lasinfo from liblas or lidarinfo from the MG4 SDK, but these will be giving you different types of information…<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> gdal-dev-bounces@lists.osgeo.org [mailto:gdal-dev-bounces@lists.osgeo.org] <b>On Behalf Of </b>Paul Meems<br><b>Sent:</b> mardi 17 mai 2011 18:05<br><b>To:</b> gdal-dev@lists.osgeo.org<br><b>Subject:</b> Re: [gdal-dev] Having trouble compiling MrSid in GDALv1.8<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Thanks Kirk and Chaitanya,<br><br>It was indeed GDAL_HOME. I used double quotes around it and after removing it it is working.<br><br>LizardTeck provided some sample data. And I'm using it to check if my version of GDAL is correct.<br>I use gdalinfo to check the .sid file and it works. When I do a gdalinfo on the .las file it is not recognized.<br>When I do a gdalinfo --formats I see MG4Lidar, but the description states .sid<br><br>Does this mean I didn't configure it right after all?<br><br>Thanks,<br><br>Paul<o:p></o:p></p><div><p class=MsoNormal>2011/5/18 Kirk McKelvey <<a href="mailto:kmckelvey@lizardtech.com">kmckelvey@lizardtech.com</a>><o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>The line it is complaining about is almost certainly the following line, where MRSID_DIR is used for the first time. Not sure how it gets 72.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;color:#1F497D'>What is your value for GDAL_HOME? There might be some kind of quoting issue going on. Also, I’m not sure I ever tested it with relative paths, so that could be it as well.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span lang=EN-US style='font-size:10.0pt'>From:</span></b><span lang=EN-US style='font-size:10.0pt'> <a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>] <b>On Behalf Of </b>Paul Meems<br><b>Sent:</b> mardi 17 mai 2011 17:19<br><b>To:</b> <a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br><b>Subject:</b> [gdal-dev] Having trouble compiling MrSid in GDALv1.8</span><o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'>Hi all,<br><br>I'm trying to compile GDALv1.8 on Win7 using VS2008Pro.<br>So far I've added successfully GEOS, cUrl, ECW, Proj.4 and Xerces.<br><br>I'm now trying to add MrSid support.<br>I've downloaded the Unified Decode SDK v8 from LizardTech and changed this in my nmake.opt:<br><span style='font-family:"Courier New"'>MRSID_DIR = $(GDAL_HOME)\..\LizardTech-SDK\Win32</span><br><br>When I compile I get an error in line 72:<br><span style='font-family:"Courier New"'>fatal error U1023: syntax error in expression \GDAL\gdal18\frmts\mrsid\nmake.opt</span><br>I didn't changed this file.<br>Lines 64 - 80 are:<br><span style='font-family:"Courier New"'>!IF DEFINED(MRSID_DIR)<br><br># Guard against conflicting configuration.<br>!IF DEFINED(MRSID_RASTER_DIR) && DEFINED(MRSID_LIDAR_DIR)<br>!ERROR The MRSID_DIR value is redundant or conflicts with the values of MRSID_RASTER_DIR and MRSID_LIDAR_DIR. Please remove one of these values from the build configuration.<br>!ENDIF<br><br># If a raster path was not explicitly set, see if MRSID_DIR is one.<br>!IF !DEFINED(MRSID_RASTER_DIR)<br>!IF EXIST("$(MRSID_DIR)\Raster_ESDK\include\lt_base.h")<br>MRSID_RASTER_DIR = $(MRSID_DIR)\Raster_ESDK<br>!ELSE IF EXIST("$(MRSID_DIR)\Raster_DSDK\include\lt_base.h")<br>MRSID_RASTER_DIR = $(MRSID_DIR)\Raster_DSDK<br>!ELSE IF EXIST("$(MRSID_DIR)\include\lt_base.h") || EXIST("$(MRSID_DIR)\include\support\lt_base.h")<br>MRSID_RASTER_DIR = $(MRSID_DIR)<br>!ENDIF<br>!ENDIF</span><br><br>Line 72 is !IF !DEFINED(MRSID_RASTER_DIR)<br><br>What do I need to do to enable MrSid?<br><br>Thanks,<br><br>Paul<o:p></o:p></p><div><div style='border:solid #E5E5E5 1.0pt;padding:10.0pt 10.0pt 4.0pt 10.0pt'><div style='margin-bottom:6.0pt'><p style='margin:0cm;margin-bottom:.0001pt;background:#F8F8F8'><b><span lang=EN-US style='font-size:10.0pt'>Paul Meems </span></b><span lang=EN-US style='font-size:10.0pt'><br>Release manager, configuration manager<br>and forum moderator of MapWindow GIS.<br></span><span style='font-size:10.0pt'><a href="http://www.mapwindow.org/" target="_blank">www.mapwindow.org</a><br><br>Owner of MapWindow.nl - Support for<br>Dutch speaking users.<br><a href="http://www.mapwindow.nl/" target="_blank">www.mapwindow.nl</a></span><o:p></o:p></p><p style='margin:0cm;margin-bottom:.0001pt;background:#F8F8F8'><span style='font-size:10.0pt'> </span><o:p></o:p></p></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></p></div></body></html>