<div dir="ltr">Hi Stefan,<br><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 16, 2014 at 2:51 PM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div link="blue" vlink="purple" lang="NO-BOK">
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US">Hi Larry,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US">I tried now with QGIS 2.3 nightly build (2.3.0-81) in OSGeo4W.<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US">When I try to open a SOSI file in QGIS I still get the “Invalid Source” error message.<u></u><u></u></span></p>


<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US">The gdal-sosi-plugin package in OSGeo4W is built against GDAL 1.10. Can that be a problem? Will I have to rebuild the plugin against GDAL 1.11
 in order to make it accessible for QGIS (ogrinfo --format lists SOSI).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US">Or is the solution to install OSGeo4W from scratch?<u></u><u></u></span></p>
</div></div></blockquote><div><br></div><div>Not sure of the state of this under OSGeo4W, or about the specific changes to the SOSI driver in 1.11. I would guess the plugin needs to be built against latest 1.11 stable source to remove that question from the debugging process.<br>
<br></div><div>I am also unsure if the 2.3.0-81 nightly build includes the file filter commit; though that commit may have nothing to do with QGIS 'supporting' the format, since it is provided by OGR. Does it list "Systematic Organization of Spatial Information [SOSI]" in the filter list in the vector layer open dialog?<br>
</div><div><br></div><div>Can you share the test data file (if different than the one listed on the GDAL/OGR wiki)?<br><br></div><div>Regards,<br><br></div><div>Larry<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div link="blue" vlink="purple" lang="NO-BOK">
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US">Any other ideas?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US">Cheers<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:"Calibri","sans-serif";color:rgb(31,73,125)" lang="EN-US">Stefan<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10pt;font-family:"Tahoma","sans-serif"" lang="EN-US">From:</span></b><span style="font-size:10pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <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</span></p><div><br>
<b>Sent:</b> 14. mai 2014 02:56<br>
<b>To:</b> Stott, James<br>
</div><b>Cc:</b> Blumentrath, Stefan; Jeff McKenna; <a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a><div><div><br>
<b>Subject:</b> Re: [Qgis-developer] GDAL 1.11 new formats<u></u><u></u></div></div><p></p><div><div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">Hi,<u></u><u></u></span></p>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span lang="EN-US"><u></u> <u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Thu, May 8, 2014 at 12:03 AM, Stott, James <</span><a href="mailto:fmrojst@fylkesmannen.no" target="_blank"><span lang="EN-US">fmrojst@fylkesmannen.no</span></a><span lang="EN-US">> wrote:<u></u><u></u></span></p>


<p class="MsoNormal"><span lang="EN-US">I second Stefan's comments. Having direct SOSI support will really strengthen the position of QGIS here in Norway.<br>
<br>
We do a lot of work with SOSI, and it would be great to open (and eventually edit) SOSI files directly rather than having to convert them first.<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">I added an extension filter for SOSI to QGIS master [0].<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span lang="EN-US">Also, for Mac, I added Homebrew formulae for the OpenFYBA lib (fyba) [1] and a GDAL/OGR shared plugin (gdal-sosi) [2]. The SOSI support was recently added to the base GDAL formula (gdal) [3],
 so recompiling it after installation of fyba will also work, e.g.:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">$ brew tap osgeo/osgeo4mac<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span lang="EN-US">$ brew update<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Then...<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">$ brew upgrade gdal   <-- this will install 1.11.0 'bottle,' if not already done
<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">$ brew install fyba<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">$ brew install gdal-sosi  <-- installs ogr_SOSI.dylib plugin in HOMEBREW_PREFIX/lib/gdalplugins/<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span lang="EN-US">Or...<u></u><u></u></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">$ brew install fyba<u></u><u></u></span></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span lang="EN-US">$ brew reinstall gdal --build-from-source --enable-unsupported<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span lang="EN-US">QGIS built against GDAL/OGR 1.11 with the sample .sos file loaded [4].<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US">Please submit any issues with fyba or gdal-sosi formulae to OSGeo4Mac tracker [5].<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt"><span lang="EN-US"><br>
[0] </span><a href="https://github.com/qgis/QGIS/commit/9804d17" target="_blank"><span lang="EN-US">https://github.com/qgis/QGIS/commit/9804d17</span></a><span lang="EN-US"><br>
[1] </span><a href="https://github.com/OSGeo/homebrew-osgeo4mac/commit/c93a2cf" target="_blank"><span lang="EN-US">https://github.com/OSGeo/homebrew-osgeo4mac/commit/c93a2cf</span></a><span lang="EN-US"><br>
[2] </span><a href="https://github.com/OSGeo/homebrew-osgeo4mac/commit/0db85d8" target="_blank"><span lang="EN-US">https://github.com/OSGeo/homebrew-osgeo4mac/commit/0db85d8</span></a><span lang="EN-US"><br>
[3] </span><a href="https://github.com/Homebrew/homebrew/blob/master/Library/Formula/gdal.rb#L187" target="_blank"><span lang="EN-US">https://github.com/Homebrew/homebrew/blob/master/Library/Formula/gdal.rb#L187</span></a><span lang="EN-US"><br>


[4] </span><a href="http://trac.osgeo.org/gdal/wiki/SOSI#TestingtheSOSIdriver" target="_blank"><span lang="EN-US">http://trac.osgeo.org/gdal/wiki/SOSI#TestingtheSOSIdriver</span></a><span lang="EN-US"> ,<br>
     </span><a href="http://drive.dakotacarto.com/qgis/sosi.png" target="_blank"><span lang="EN-US">http://drive.dakotacarto.com/qgis/sosi.png</span></a><span lang="EN-US"><br>
[5] </span><a href="https://github.com/OSGeo/homebrew-osgeo4mac/issues" target="_blank"><span lang="EN-US">https://github.com/OSGeo/homebrew-osgeo4mac/issues</span></a><span lang="EN-US"><br>
<br>
<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12pt">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Larry<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br>
 <u></u><u></u></p>
</div>
<blockquote style="border-width:medium medium medium 1pt;border-style:none none none solid;border-color:-moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">

<p class="MsoNormal">James<br>
<br>
-----Opprinnelig melding-----<br>
Fra: <a href="mailto:qgis-developer-bounces@lists.osgeo.org" target="_blank">qgis-developer-bounces@lists.osgeo.org</a> [mailto:<a href="mailto:qgis-developer-bounces@lists.osgeo.org" target="_blank">qgis-developer-bounces@lists.osgeo.org</a>] På vegne av Blumentrath, Stefan<br>


Sendt: 7. mai 2014 23:36<br>
Til: Jeff McKenna; <a href="mailto:qgis-developer@lists.osgeo.org" target="_blank">qgis-developer@lists.osgeo.org</a><br>
Emne: Re: [Qgis-developer] GDAL 1.11 new formats<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><br>
<span lang="EN-US">Yes, though I have to admit that I have no experience with building GDAL with SOSI support on Mac, but I know that the underling OpenFYBA lib has been successfully build on Mac, so I assume the Unix build hints should apply for Mac also  for
 GDAL/OGR.<br>
<br>
Probably I should note, that the free map data of the Norwegian Mapping Authority (</span><a href="http://data.kartverket.no/download/" target="_blank"><span lang="EN-US">http://data.kartverket.no/download/</span></a><span lang="EN-US">) also come in SOSI format
 (vector)...<br>
<br>
Cheers<br>
Stefan<br>
<br>
-----Original Message-----<br>
From: </span><a href="mailto:qgis-developer-bounces@lists.osgeo.org" target="_blank"><span lang="EN-US">qgis-developer-bounces@lists.osgeo.org</span></a><span lang="EN-US"> [mailto:</span><a href="mailto:qgis-developer-bounces@lists.osgeo.org" target="_blank"><span lang="EN-US">qgis-developer-bounces@lists.osgeo.org</span></a><span lang="EN-US">]
 On Behalf Of Jeff McKenna<br>
Sent: 7. mai 2014 22:56<br>
To: </span><a href="mailto:qgis-developer@lists.osgeo.org" target="_blank"><span lang="EN-US">qgis-developer@lists.osgeo.org</span></a><span lang="EN-US"><br>
Subject: Re: [Qgis-developer] GDAL 1.11 new formats<br>
<br>
On 2014-05-07, 5:31 PM, Blumentrath, Stefan wrote:<br>
> The Norwegian SOSI format (Vector) is also "new" - or more precise<br>
> improved - in terms of build process in GDAL 1.11.<br>
><br>
><br>
><br>
> On windows, it is now supported as a GDAL plugin and available in<br>
> OSGeo4W. On Linux / Mac it still has to be built from source with an<br>
> external library dependency (</span><a href="https://github.com/kartverket/fyba" target="_blank"><span lang="EN-US">https://github.com/kartverket/fyba</span></a><span lang="EN-US">).<br>
><br>
> SOSI is a bit peculiar, but it is the format of the official map data<br>
> in Norway, used by public authorities.  The driver says it is<br>
> Read/Write but writing is not fully implemented (yet).<br>
><br>
><br>
><br>
> It would be splendid to be able to open SOSI files directly in QGIS<br>
> (see also </span><a href="http://hub.qgis.org/issues/3708" target="_blank"><span lang="EN-US">http://hub.qgis.org/issues/3708</span></a><span lang="EN-US">) and also write it once the<br>
> public mapping authority fully implements the driver...<br>
><br>
<br>
Hello Stefan,<br>
<br>
That is very interesting.  Are all of your notes included on the GDAL Buildhints page, for Windows and Linux/Mac?<br>
</span><a href="http://trac.osgeo.org/gdal/wiki/SOSI" target="_blank"><span lang="EN-US">http://trac.osgeo.org/gdal/wiki/SOSI</span></a><span lang="EN-US"><br>
<br>
-jeff<br>
<br>
<br>
<br>
--<br>
Jeff McKenna<br>
MapServer Consulting and Training Services </span><a href="http://www.gatewaygeomatics.com/" target="_blank"><span lang="EN-US">http://www.gatewaygeomatics.com/</span></a><span lang="EN-US"><br>
<br>
<br>
<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
</span><a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank"><span lang="EN-US">Qgis-developer@lists.osgeo.org</span></a><span lang="EN-US"><br>
</span><a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank"><span lang="EN-US">http://lists.osgeo.org/mailman/listinfo/qgis-developer</span></a><span lang="EN-US"><br>
_______________________________________________<br>
Qgis-developer mailing list<br>
</span><a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank"><span lang="EN-US">Qgis-developer@lists.osgeo.org</span></a><span lang="EN-US"><br>
</span><a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank"><span lang="EN-US">http://lists.osgeo.org/mailman/listinfo/qgis-developer</span></a><span lang="EN-US"><br>
_______________________________________________<br>
Qgis-developer mailing list<br>
</span><a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank"><span lang="EN-US">Qgis-developer@lists.osgeo.org</span></a><span lang="EN-US"><br>
</span><a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank"><span lang="EN-US">http://lists.osgeo.org/mailman/listinfo/qgis-developer</span></a><span lang="EN-US"><u></u><u></u></span></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
</div>
</div>
</div></div></div>
</div>

</blockquote></div><br></div></div></div>