<div dir="ltr">If SOSI is available in the Raster file open dialog, it is because gdal has support for SOSI. If a particular SOSI file cannot be opened, then it is a GDAL bug, not a QGIS one, and should be reported in the GDAL bugtracker.<div>
<br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 27, 2014 at 11:18 AM, Blumentrath, Stefan <span dir="ltr"><<a href="mailto:Stefan.Blumentrath@nina.no" target="_blank">Stefan.Blumentrath@nina.no</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="NO-BOK" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Larry,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks for your efforts. I understand that you are especially busy right now…<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I checked GDAL_DRIVER_PATH  and it was - just as you suspected for OSGeo4W – set properly to “C:\OSGeo4W\bin\gdalplugins”.<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Just like in James case, SOSI is listed in the combo-box in QGIS and I get the dialog for selecting among the three layers in the file. When I
 try to load one of them I get the “Invalid data source” error message.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">GDAL in the same OSGeo4W installation reads and converts the SOSI file without any issues. However, I noticed that GDAL was also less picky with
 the versions. While the SOSI plugin compiled against GDAL 1.10 does not show up in QGIS 2.3 (build against GDAL 1.11), GDAL 1.11 itself has no problems with that plugin either.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Maybe some subtle differences in compiler settings between Jürgens build of GDAL and my build of the SOSI-plugin may cause the problems here? I
 assume you use same compiler for GDAL and QGIS on Mac (like I do on Ubuntu)…<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">When I built the SOSI plugin I tried to follow packaging instructions closely. I used MS Visual Studio Express 2010 (compiler toolset v100) for
 the 32bit build (SDK 7.1 for the 64bit build), set MSVC_VER=1600 in GDALs nmake.opt, added SOSI support and kept default settings in the other cases.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Stefan<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></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""> <a href="mailto:larry@shafferinteractive.com" target="_blank">larry@shafferinteractive.com</a> [mailto:<a href="mailto:larry@shafferinteractive.com" target="_blank">larry@shafferinteractive.com</a>]
<b>On Behalf Of </b>Larry Shaffer<br>
<b>Sent:</b> 27. juni 2014 13:02</span></p><div><div class="h5"><br>
<b>To:</b> Blumentrath, Stefan<br>
<b>Cc:</b> Stott, James; <a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [Qgis-developer] SOSI support in QGIS<u></u><u></u></div></div><p></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hmm. I had no issues opening that file up on Mac [0]. The only other thing I can think of is to ensure the GDAL_DRIVER_PATH is set in the environment, so the plugins can be found at run-time by QGIS/GDAL. I
 don't think that should be an issue for an OSGeo4W install, though. To be sure, you can try setting it in Options -> System -> Environment and see if that helps.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">If the plugin wasn't found by GDAL, then the file filter for SOSI would not show up in QGIS's file browse dialog's combobox for opening a vector layer. If you choose *.* (all files) and try to load a .sos file, then it will throw the invalid
 source error in the message bar, because GDAL never loaded the plugin.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">Sorry, won't have time to test on any other platforms for a couple of days.<u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
[0] <a href="http://drive.dakotacarto.com/qgis/sosi-file-load.png" target="_blank">http://drive.dakotacarto.com/qgis/sosi-file-load.png</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<br clear="all">
<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><br>
Larry<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Jun 27, 2014 at 3:50 AM, Blumentrath, Stefan <<a href="mailto:Stefan.Blumentrath@nina.no" target="_blank">Stefan.Blumentrath@nina.no</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Larry,</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Tanks for having a look at this.</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I shall send you the file off-list…</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Stefan</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></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"">
<a href="mailto:larry@shafferinteractive.com" target="_blank">larry@shafferinteractive.com</a> [mailto:<a href="mailto:larry@shafferinteractive.com" target="_blank">larry@shafferinteractive.com</a>]
<b>On Behalf Of </b>Larry Shaffer<br>
<b>Sent:</b> 27. juni 2014 11:37<br>
<b>To:</b> Blumentrath, Stefan<br>
<b>Cc:</b> Stott, James; <a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">
qgis-developer@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [Qgis-developer] SOSI support in QGIS</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi James,<u></u><u></u></p>
</div>
<p class="MsoNormal">Can you share the dataset from Miljødirektoratet that you are testing? I can't get Google to translate the pages to English.<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<br clear="all">
<u></u><u></u></p>
</div>
<div>
<div>
<p class="MsoNormal"><br>
Larry<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p>
<div>
<p class="MsoNormal">On Fri, Jun 27, 2014 at 2:43 AM, Blumentrath, Stefan <<a href="mailto:Stefan.Blumentrath@nina.no" target="_blank">Stefan.Blumentrath@nina.no</a>> wrote:<u></u><u></u></p>
<div>
<p class="MsoNormal">>So it Works for Mac and Linux users?<u></u><u></u></p>
</div>
<p class="MsoNormal">Yes, seems to work there.<u></u><u></u></p>
<div>
<p class="MsoNormal"><br>
>Does this work with the installer download of QGIS for Windows? I havent actually tried that.<u></u><u></u></p>
</div>
<p class="MsoNormal">I doubt it, since the installer is also built based on OSGeo4W, if I am not mistaken.<u></u><u></u></p>
<div>
<p class="MsoNormal"><br>
>Is it possible to drop it for just Windows users?<u></u><u></u></p>
</div>
<p class="MsoNormal">No idea. Any developer / packager who would be willing to help us tracing down the problem on Win? Since a fix would be the best solution...<u></u><u></u></p>
<div>
<p class="MsoNormal"><br>
>I just think we will end up with a lot of users (especially as Windows will possbily be the most used platform) who will get frustrated that they cant open these files despite it looking like they should be able to. Better to wait until 2.6 in my opinion.<br>

>This is a shame as we now have a nearly complete Norwegian translation in place for 2.4, so SOSI support and a translation are two very good arguements for adopting QGIS here.<u></u><u></u></p>
</div>
<p class="MsoNormal">I see your point...<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
Cheers<br>
Stefan<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>

<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br></div>