[Qgis-developer] SOSI support in QGIS

Stott, James fmrojst at fylkesmannen.no
Fri Jun 27 00:17:34 PDT 2014


OK I have checked this quickly this morning on my machine at home as I am not around for the next week. Only difference at home is Windows 8. Updated both 32 bit (to 39eaff9) and 64 bit (to 2d1e983) OSGeo4W this morning.

I still do not get the option for SOSI files in 32 bit QGIS in the files of type drop down menu in the open file dialog window. The SOSI option is avaiable in 64 bit.

The 64 bit version still gives the invalid data source error after trying to open the SOSI file.

The SOSI file I have tested with is the naturvernområde dataset from Miljødirektoratet (I have downloaded only data for Rogaland fylke - data available from here http://karteksport.miljodirektoratet.no/#page=tab1). 

ogrinfo reports correctly on both 32 and 64 bit versions and ogr2ogr will convert sosi files to shapefiles in my test. 

Commands used were:

ogrinfo NATVERNOMR.SOS
ogr2ogr -f "ESRI Shapefile" output NATVERNOMR.SOS

Both sets of output shapefiles open fine in QGIS.

Regards,

James
________________________________________
From: Blumentrath, Stefan [Stefan.Blumentrath at nina.no]
Sent: 26 June 2014 21:04
To: Stott, James; qgis-developer at lists.osgeo.org
Subject: RE: SOSI support in QGIS

Hi again,

Now I rebuilt the 32-bit package based on GDAL 1.11.0 which is the GDAL version QGIS is build against (the old package on OSGeo4W was built against GDAL 1.10) and tested in QGIS 2.3 (QGIS code revision  39eaff9).
The problem is now the same, James described for the 64bit version. However, ogrinfo gives no error messages and displays the content of the SOSI file and all layers just fine. So maybe it is not only a packaging issue?

James, what does your 64bit ogrinfo say when run with your SOSI file? And does ogr2ogr work for you in 64bit?

Cheers
Stefan

From: qgis-developer-bounces at lists.osgeo.org [mailto:qgis-developer-bounces at lists.osgeo.org] On Behalf Of Stott, James
Sent: 26. juni 2014 11:14
To: qgis-developer at lists.osgeo.org
Subject: [Qgis-developer] SOSI support in QGIS

Hi all,

Just wondered if anything more has happened with this?

As it stands, I get an option for SOSI files in the file open dialog of 64 bit master, but not 32 bit. (SOSI is the data standard in Norway for those that don’t know).

In 64 bit, when I select a file for opening, it comes up with another dialog (similar to when you open up a gpx file) where you choose the geometry you want to load from the file. After I have selected what I want and push ok, I just get an error message saying that the data is not a valid data source.

This happens on both mine and a colleagues machine. Does this affect others too?

I have also installed the gdal-sosi package in osgeo4w. I am using Windows 7 64 Bit, osgeo4w for install. Current QGIS version is d4b07a.

If SOSI files do not open in QGIS, we should remove the option from the open file dialog window. Otherwise I think people here in Norway will have a bad experience with QGIS and SOSI.

Regards,

James Stott


More information about the Qgis-developer mailing list