Re: [Qgis-developer] SOSI support in QGIS

2014-07-09 Thread Stott, James
Hi Tommy,

Unfortunately this list is not really the correct place to ask this question. 
It is possible that there are some people here who have experience with using 
dot spatial, but I think you are more likely to get a better response on the 
forums on the dot spatial website. I am certainly not familiar with dot spatial 
myself.

I don't know how dot spatial integrates GDAL into their system, or what version 
they are using, but OSGeo4W uses GDAL 1.11.0. From what I understand, OSGeo4W 
tends to set environment variables when it starts programs (with the use of 
.bat files). So it is unlikely that the GDAL installed with OSGeo4W is 
interfering with the GDAL that is built into dot spatial. However that is just 
my understanding of it and one of the more expert people here will maybe want 
to correct me :)

Sorry I can't be of more help, but try the guys over at the dot spatial site. 
They will be able to provide further guidance I would imagine. 

James

-Opprinnelig melding-
Fra: qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av klausenlie
Sendt: 8. juli 2014 19:53
Til: qgis-developer@lists.osgeo.org
Emne: Re: [Qgis-developer] SOSI support in QGIS

Hi everyone and thanks for the post lately.

I don`t konow if I am completly off road here, but I have and issue that I 
suspect COULD be related to GDAL.

I am working with a .Net forms application i Visual Studio 2013 which uses Dot 
Spatial.

From what I can read it is based somehowe on GDAL.

Now, tonight, out of the blue really, I get an out of memory message when I 
try to open a GeoTiff in the Dot Spatial map control.
I say out of the blue because it came just like that.

I must have done something or something must have happened, but I can`t figure 
out what.

Has this something to do with the GDAL/OGR me and James have been working on 
lately and I have installed on this machine? Has there been an automatic update 
somewhere?

I just wanted to ask

Tommy



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5150155.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-08 Thread Stott, James
Hi Andre,

I have now tested on 3 different machines with 3 different datasets.

Machines tested:

1) Work desktop running Windows 7
2) Work laptop running Windows 8
3) Home laptop running Windows 8

Datasets tested:

1) Naturvernområde (NATVERNOMR.SOS)
2) Naturtyper (NATURTYPER.SOS)
3) Felles kystkontur generalisert (Kystkontur_generalisert.SOS)

All 3 of these datasets are available here and are as they were when I 
downloaded them - I have not edited the data at all.

https://drive.google.com/folderview?id=0B6r5nAOdEBZramdzNi15YzNqZUUusp=sharing

ogr2ogr:

The following ogr2ogr commands complete fine on all 3 machines and the 
shapefiles open without any problems. 

ogr2ogr -f ESRI Shapefile kystkontur Kystkontur_generalisert.SOS
ogr2ogr -f ESRI Shapefile naturtyper NATURTYPER.SOS
ogr2ogr -f ESRI Shapefile natvernomr NATVERNOMR.SOS

It appears that all data is converted when I check the number of records in the 
SOSI file against the number of converted records in the shapefiles. The only 
warnings I get are about normalized/laundered field names, but I assume that's 
due to me converting to a shapefile.

QGIS:

In QGIS, I can only hear the popping noise on Windows 7. QGIS crashes on 
Windows 7 as well. The two Windows 8 machines experience no problems with the 3 
sosi files that are available from the link above. The data loads and displays 
correctly, and QGIS never shutdowns unexpectedly. I get fewer problems when I 
load only one of the geometry types from one SOSI file.

So I don't know if this is a specific Windows 7 thing or not.

Hope this helps.

James

-Opprinnelig melding-
Fra: qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Andre Joost
Sendt: 8. juli 2014 05:57
Til: qgis-developer@lists.osgeo.org
Emne: Re: [Qgis-developer] SOSI support in QGIS

Am 07.07.2014 22:21, schrieb Stott, James:
 Hi Andre,

 Are there any specific tests that you would like me to run?

 Or will it suffice with a basic ogr2ogr command like:

 ogr2ogr -f ESRI Shapefile out Kystkontur_generalisert.SOS


That would be my first try.

And any other operations in GDAL that use vector data.

Greetings,
André Joost
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-08 Thread klausenlie
Hi everyone and thanks for the post lately.

I don`t konow if I am completly off road here, but I have and issue that I
suspect COULD be related to GDAL.

I am working with a .Net forms application i Visual Studio 2013 which uses
Dot Spatial.

From what I can read it is based somehowe on GDAL.

Now, tonight, out of the blue really, I get an out of memory message when
I try to open a GeoTiff in the Dot Spatial map control.
I say out of the blue because it came just like that.

I must have done something or something must have happened, but I can`t
figure out what.

Has this something to do with the GDAL/OGR me and James have been working on
lately and I have installed on this machine? Has there been an automatic
update somewhere?

I just wanted to ask

Tommy



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5150155.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-07 Thread Stott, James
Hi Jürgen,

So with further testing it appears we have found some problems with other SOSI 
files.

It seems things work quite well with simple files (like the naturvernområde 
data for Rogaland I and others have tested with), but we get problems when 
opening bigger files. 

One thing we have noticed is that a lot of the problems seem to happen when you 
try and load more than one type of geometry types from a sosi file at once. If 
I select all 3 geometry types in one go (or load 2 or more individually) QGIS 
crashes. If we just load one geometry type, and then close it and load another 
geometry type, it works fine.

We are also getting problems with files that contain a lot of data, in this 
situation QGIS will crash with just one layer loaded.

And when QGIS starts to error, I get the noise problem mentioned here too 
http://hub.qgis.org/issues/10746 .

So a few issues, but it's a great start that it works with some data :)

If people would like copies of these datasets for testing, I can provide them.

James

-Opprinnelig melding-
Fra: qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] På vegne av Stott, James
Sendt: 6. juli 2014 16:42
Til: Jürgen E. Fischer; qgis-developer@lists.osgeo.org
Emne: Re: [Qgis-developer] SOSI support in QGIS

Hi Jürgen,

1.11.0-4 fixes this problem.

Thanks for the help.

James

From: qgis-developer-boun...@lists.osgeo.org 
[qgis-developer-boun...@lists.osgeo.org] on behalf of Jürgen E. Fischer 
[j...@norbit.de]
Sent: 06 July 2014 16:17
To: qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] SOSI support in QGIS

Hi James,

On Sun, 06. Jul 2014 at 13:53:57 +, Stott, James wrote:
 One other thing I have noticed on 64 bit is that gdal-python package 
 has a different version number (1.11.0-3) than in 32 bit (1.11.0-2). 
 This version number is different to all the other packages which are 1.11.0-2.

Try 1.11.0-4 please

Jürgen:

--
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Norden http://www.norbit.de
QGIS release manager (PSC)  GermanyIRC: jef on FreeNode

--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH 
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-07 Thread Andre Joost

Am 07.07.2014 14:16, schrieb Stott, James:


We are also getting problems with files that contain a lot of data,
in this situation QGIS will crash with just one layer loaded.



Do these files work fine with ogr2ogr?
Just to make clear that it is not a GDAL issue.

Greetings,
André Joost
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-07 Thread Stott, James
Hi Andre,

Are there any specific tests that you would like me to run?

Or will it suffice with a basic ogr2ogr command like:

ogr2ogr -f ESRI Shapefile out Kystkontur_generalisert.SOS

James

From: qgis-developer-boun...@lists.osgeo.org 
[qgis-developer-boun...@lists.osgeo.org] on behalf of Andre Joost 
[andre+jo...@nurfuerspam.de]
Sent: 07 July 2014 16:31
To: qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] SOSI support in QGIS

Am 07.07.2014 14:16, schrieb Stott, James:

 We are also getting problems with files that contain a lot of data,
 in this situation QGIS will crash with just one layer loaded.


Do these files work fine with ogr2ogr?
Just to make clear that it is not a GDAL issue.

Greetings,
André Joost
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-07 Thread Andre Joost

Am 07.07.2014 22:21, schrieb Stott, James:

Hi Andre,

Are there any specific tests that you would like me to run?

Or will it suffice with a basic ogr2ogr command like:

ogr2ogr -f ESRI Shapefile out Kystkontur_generalisert.SOS



That would be my first try.

And any other operations in GDAL that use vector data.

Greetings,
André Joost
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread klausenlie
Hi Joost. Thank you for your answer!

Do you know the sosi library?

I manages to use the shell and I am creating shapfiles from sosi.
I have some problems with the placename files though. They only show up as
dots.

Is using only the .shp files the usual way to handle .shp files, or do you
use the other files as well when it comes to displaying and using the
shapefiles as part a map?

I`m not familiar with this a 100%



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149818.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread Jürgen E . Fischer
Hi James,

On Thu, 26. Jun 2014 at 09:14:18 +, Stott, James wrote:
 Just wondered if anything more has happened with this?

Please try with the latest gdal-sosi package (1.11.0-2).  QGIS opens the
dataset several times, but sosi did file locking on windows and that prevented
that.   I removed it from fyba (isn't done on unix either) and now it appears
to work.

The new set of gdal packages also adds GeoPDF support and has some fixes for
Pg, NAS and mssql, that didn't make it into 1.11.0.
 

Jürgen

-- 
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Norden http://www.norbit.de
QGIS release manager (PSC)  GermanyIRC: jef on FreeNode 


-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread Jürgen E . Fischer
Hi,

On Sun, 06. Jul 2014 at 11:42:29 +0200, Jürgen E. Fischer wrote:
 Please try with the latest gdal-sosi package (1.11.0-2).

I'm talking about OSGeo4W, if that wasn't obvious anyway.

Jürgen

-- 
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Norden http://www.norbit.de
QGIS release manager (PSC)  GermanyIRC: jef on FreeNode 


-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread klausenlie
Hi Jurgen! Si nice of you to help me.

Correct me if I`m wrong, but I got the sosi-shapefile to work through the
OsGeo4w shell.
And from that I can open the shapefiles in QGIS.

I guess I can`t do it in another way in QGIS yet?

I have some questions about the creation process.
Doing a job on one sosi-file creates both lines, points and polygon shape
files. Why?

And the placename shapefile opened in QGIS only gives me a set of points in
the display. (Both iso and utf8 of the the sosi)

I`m going to use the shapefiles in my own application so I just want to look
at the files in QGIS first.

Tommy



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149822.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread Stott, James
Hi Jürgen,

And that fixes everything :)

I now get the option to select SOSI in the files of type drop down menu in the 
vector file open dialog in both 32 bit and 64 bit.

Both 32 and 64 bit versions of QGIS open SOSI files correctly with the file I 
used previously. I will do some more testing tomorrow and write back if I find 
any problems.

Thank you very much for your help, this is excellent news for us.

James

From: qgis-developer-boun...@lists.osgeo.org 
[qgis-developer-boun...@lists.osgeo.org] on behalf of Jürgen E. Fischer 
[j...@norbit.de]
Sent: 06 July 2014 11:43
To: qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] SOSI support in QGIS

Hi,

On Sun, 06. Jul 2014 at 11:42:29 +0200, Jürgen E. Fischer wrote:
 Please try with the latest gdal-sosi package (1.11.0-2).

I'm talking about OSGeo4W, if that wasn't obvious anyway.

Jürgen

--
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Norden http://www.norbit.de
QGIS release manager (PSC)  GermanyIRC: jef on FreeNode

--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread klausenlie
Hi James!

Can you please tell me where you are in QGIS now?
I haven`t found what you talk about here.

Tommy



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149826.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread Stott, James
Hi,

Just to double check a couple of things, 1) you need to install the gdal-sosi 
package using the OSGeo4W installer. 2) You will need to update all packages 
using the OSGeo4W installer as the changes Jürgen has made seem to have been 
made today.

If you go into QGIS and select Add Vector Layer from the Layer menu (these 
instructions assume an English GUI, obviously if you are using the Norwegian 
translated GUI it will be in Norwegian). 
Here you need to make sure Source type is set to File. 
Click browse. 
In the bottom right hand corner of the open file dialog, you will see a drop 
down menu. 
Here you should find an option for SOSI. 
Select a SOSI file and select and click open.
Click Open
A dialog will appear allowing you to select which layers from the SOSI file to 
open. Choose the ones you want and select OK.
QGIS will load the data.

Hope this helps.

James



From: qgis-developer-boun...@lists.osgeo.org 
[qgis-developer-boun...@lists.osgeo.org] on behalf of klausenlie 
[klausen...@online.no]
Sent: 06 July 2014 13:37
To: qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] SOSI support in QGIS

Hi James!

Can you please tell me where you are in QGIS now?
I haven`t found what you talk about here.

Tommy



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149826.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread klausenlie
Hi James!

Ok, now we`re getting somewhere.

With regards to both 1 and 2. How do I do that?

I tried to build the package myself yesterdal, with the UT.lib, GM.lib and
FYBA lib but when it came to the nmake process and further on (in Visual
studio) I met a wall. :-)

Right now I get an error trying to do as you described. Guess that`s because
1 and 2 isn`t met.

Tommy



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149830.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread Jürgen E . Fischer
Hi Tommy,

On Sun, 06. Jul 2014 at 05:12:03 -0700, klausenlie wrote:
 I tried to build the package myself yesterdal, with the UT.lib, GM.lib and
 FYBA lib but when it came to the nmake process and further on (in Visual
 studio) I met a wall. :-)

BTW I also added CMake files.   If already sent it to Stefan - as I saw commits
from him in the fyba rep - but it's already here[1] now.

Jürgen


[1] 
http://buten.norbit.de/~jef/0001-don-t-use-file-locking-on-windows-locks-index-even-i.patch

-- 
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Norden http://www.norbit.de
QGIS release manager (PSC)  GermanyIRC: jef on FreeNode 


-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread Jürgen E . Fischer
Hi James,

On Sun, 06. Jul 2014 at 11:31:56 +, Stott, James wrote:
 And that fixes everything :)

Not quite.  Apparently the sosi plugin also somehow produces a noise[1] and
that's still there.

Jürgen



[1] http://hub.qgis.org/issues/10746

-- 
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Norden http://www.norbit.de
QGIS release manager (PSC)  GermanyIRC: jef on FreeNode 


-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread klausenlie
Hi Fischer and James!

What do I do now?
I don`t know how to use the patch link.
Sorry for this.

Tommy



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149834.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread Stott, James
@Tommy: 
I have created a short blog post on how to enable SOSI support when installing 
QGIS using OSGeo4W.

http://jamesinnorway.net/2014/07/06/qgis-2-4-and-sosi/

I havent compiled anything from source for this.

Let me know if it helps.

@Jürgen:

I have had the sound issue before on my work machine (Windows 7), but it was 
only when the SOSI file wouldnt open. Now that the files open I do not get the 
problem on my home machine (Windows 8 - but never noticed if it was there 
before so cant comment on that).

James

From: qgis-developer-boun...@lists.osgeo.org 
[qgis-developer-boun...@lists.osgeo.org] on behalf of klausenlie 
[klausen...@online.no]
Sent: 06 July 2014 14:42
To: qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] SOSI support in QGIS

Hi Fischer and James!

What do I do now?
I don`t know how to use the patch link.
Sorry for this.

Tommy



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149834.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread Stott, James
...@lists.osgeo.org 
[qgis-developer-boun...@lists.osgeo.org] on behalf of Stott, James 
[fmro...@fylkesmannen.no]
Sent: 06 July 2014 15:18
To: klausenlie; j...@norbit.de; qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] SOSI support in QGIS

@Tommy:
I have created a short blog post on how to enable SOSI support when installing 
QGIS using OSGeo4W.

http://jamesinnorway.net/2014/07/06/qgis-2-4-and-sosi/

I havent compiled anything from source for this.

Let me know if it helps.

@Jürgen:

I have had the sound issue before on my work machine (Windows 7), but it was 
only when the SOSI file wouldnt open. Now that the files open I do not get the 
problem on my home machine (Windows 8 - but never noticed if it was there 
before so cant comment on that).

James

From: qgis-developer-boun...@lists.osgeo.org 
[qgis-developer-boun...@lists.osgeo.org] on behalf of klausenlie 
[klausen...@online.no]
Sent: 06 July 2014 14:42
To: qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] SOSI support in QGIS

Hi Fischer and James!

What do I do now?
I don`t know how to use the patch link.
Sorry for this.

Tommy



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149834.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread Jürgen E . Fischer
Hi James,

On Sun, 06. Jul 2014 at 13:53:57 +, Stott, James wrote:
 One other thing I have noticed on 64 bit is that gdal-python package has a
 different version number (1.11.0-3) than in 32 bit (1.11.0-2). This version
 number is different to all the other packages which are 1.11.0-2.

Try 1.11.0-4 please

Jürgen:

-- 
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Norden http://www.norbit.de
QGIS release manager (PSC)  GermanyIRC: jef on FreeNode 


-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread Andre Joost

Am 06.07.2014 14:37, schrieb Jürgen E. Fischer:

Hi James,

On Sun, 06. Jul 2014 at 11:31:56 +, Stott, James wrote:

And that fixes everything :)


Not quite.  Apparently the sosi plugin also somehow produces a noise[1] and
that's still there.



I have this strange noise too, using QGIS 2.2 standalone, and the old 
SOSI driver for GDAL 1.10 from OSGEO4W manually moved to Valmieras 
gdal-plugin folder. The buzz comes just before the error message.


I never heard that on any other data source.

HTH,
André Joost
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread Stott, James
Hi Jürgen,

1.11.0-4 fixes this problem.

Thanks for the help.

James

From: qgis-developer-boun...@lists.osgeo.org 
[qgis-developer-boun...@lists.osgeo.org] on behalf of Jürgen E. Fischer 
[j...@norbit.de]
Sent: 06 July 2014 16:17
To: qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] SOSI support in QGIS

Hi James,

On Sun, 06. Jul 2014 at 13:53:57 +, Stott, James wrote:
 One other thing I have noticed on 64 bit is that gdal-python package has a
 different version number (1.11.0-3) than in 32 bit (1.11.0-2). This version
 number is different to all the other packages which are 1.11.0-2.

Try 1.11.0-4 please

Jürgen:

--
Jürgen E. Fischer   norBIT GmbH Tel. +49-4931-918175-31
Dipl.-Inf. (FH) Rheinstraße 13  Fax. +49-4931-918175-50
Software Engineer   D-26506 Norden http://www.norbit.de
QGIS release manager (PSC)  GermanyIRC: jef on FreeNode

--
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-06 Thread klausenlie
Hi James and Fischer!

How should I go about to export a sosi -file (which I have edited with my
own symbology) to shapefile?
It seems that I loose the information tied to the different object types,
when I do it via Layer - save as...

Tommy



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149867.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-05 Thread klausenlie
Hi again.
Some of you have said something about opening sosi-files
in QGIS. I myselft haven't found any other place than in the
file explorer, but opening from there i get the error message.
I have tried to look in the toolbox for gdal but havnet found anything there
for sosi.

 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOSI-support-in-QGIS-tp5148046p5149791.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-07-05 Thread Andre Joost

Am 05.07.2014 23:40, schrieb klausenlie:

Hi again.
Some of you have said something about opening sosi-files
in QGIS. I myselft haven't found any other place than in the
file explorer, but opening from there i get the error message.
I have tried to look in the toolbox for gdal but havnet found anything there
for sosi.



The GDAL mentioned is only available if you use the OSGEO4W Shell icon. 
It is a command line application. Typing ogrinfo --formats lists all 
available vector data formats. You will find SOSI there if it is 
correctly installed. The list is not sorted alphabetically.


If SOSI is listed, you can transform the file into other formats using 
ogr2ogr.


HTH,
André Jooost
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-06-27 Thread Stott, James
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.blumentr...@nina.no]
Sent: 26 June 2014 21:04
To: Stott, James; qgis-developer@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-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] On Behalf Of Stott, James
Sent: 26. juni 2014 11:14
To: qgis-developer@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
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-06-27 Thread Blumentrath, Stefan
Hi James,

-Original Message-
From: Stott, James 

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.
That is because the gdal-sosi plugin in 32bit OSGeo4W was built against GDAL 
1.10 (and not the 1.11 version QGIS 2.3 / 2.4 is (will be) using. I shall 
update the package based on GDAL 1.11 asap.


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. 

I can confirm the behavior you describe on Windows (both 32 and 64bit). Given 
that GDAL (using the gdal-sosi plugin from OSGeo4W) handles SOSI files without 
problems, the issue must be somewhere in the QGIS-GDAL interface. No idea what 
the reason might be...

Meanwhile I also tested on Ubuntu 12.04 LTS (where I compiled GDAL 1.11 with 
SOSI support and then the latest QGIS master). On Ubuntu I can open SOSI files 
in QGIS without any problems... So this is a Windows specific issue, which 
makes me think that dropping the option to open SOSI from QGIS completely would 
be a bit too radical...

Cheers
Stefan
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-06-27 Thread Stott, James
So it Works for Mac and Linux users? Does this work with the installer download 
of QGIS for Windows? I havent actually tried that.

Is it possible to drop it for just Windows users? 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.

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.

James

From: Blumentrath, Stefan [stefan.blumentr...@nina.no]
Sent: 27 June 2014 09:42
To: Stott, James; qgis-developer@lists.osgeo.org
Subject: RE: SOSI support in QGIS

Hi James,

-Original Message-
From: Stott, James

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.
That is because the gdal-sosi plugin in 32bit OSGeo4W was built against GDAL 
1.10 (and not the 1.11 version QGIS 2.3 / 2.4 is (will be) using. I shall 
update the package based on GDAL 1.11 asap.


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.

I can confirm the behavior you describe on Windows (both 32 and 64bit). Given 
that GDAL (using the gdal-sosi plugin from OSGeo4W) handles SOSI files without 
problems, the issue must be somewhere in the QGIS-GDAL interface. No idea what 
the reason might be...

Meanwhile I also tested on Ubuntu 12.04 LTS (where I compiled GDAL 1.11 with 
SOSI support and then the latest QGIS master). On Ubuntu I can open SOSI files 
in QGIS without any problems... So this is a Windows specific issue, which 
makes me think that dropping the option to open SOSI from QGIS completely would 
be a bit too radical...

Cheers
Stefan
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-06-27 Thread Blumentrath, Stefan
So it Works for Mac and Linux users?
Yes, seems to work there.

Does this work with the installer download of QGIS for Windows? I havent 
actually tried that.
I doubt it, since the installer is also built based on OSGeo4W, if I am not 
mistaken.

Is it possible to drop it for just Windows users?
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...

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.
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.
I see your point...

Cheers
Stefan
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] SOSI support in QGIS

2014-06-27 Thread Larry Shaffer
Hi James,

Can you share the dataset from Miljødirektoratet that you are testing? I
can't get Google to translate the pages to English.

Regards,

Larry


On Fri, Jun 27, 2014 at 2:43 AM, Blumentrath, Stefan 
stefan.blumentr...@nina.no wrote:

 So it Works for Mac and Linux users?
 Yes, seems to work there.

 Does this work with the installer download of QGIS for Windows? I havent
 actually tried that.
 I doubt it, since the installer is also built based on OSGeo4W, if I am
 not mistaken.

 Is it possible to drop it for just Windows users?
 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...

 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.
 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.
 I see your point...

 Cheers
 Stefan
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] SOSI support in QGIS

2014-06-27 Thread Blumentrath, Stefan
Hi Larry,

Tanks for having a look at this.

I shall send you the file off-list…

Cheers
Stefan


From: la...@shafferinteractive.com [mailto:la...@shafferinteractive.com] On 
Behalf Of Larry Shaffer
Sent: 27. juni 2014 11:37
To: Blumentrath, Stefan
Cc: Stott, James; qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] SOSI support in QGIS

Hi James,
Can you share the dataset from Miljødirektoratet that you are testing? I can't 
get Google to translate the pages to English.

Regards,

Larry

On Fri, Jun 27, 2014 at 2:43 AM, Blumentrath, Stefan 
stefan.blumentr...@nina.nomailto:stefan.blumentr...@nina.no wrote:
So it Works for Mac and Linux users?
Yes, seems to work there.

Does this work with the installer download of QGIS for Windows? I havent 
actually tried that.
I doubt it, since the installer is also built based on OSGeo4W, if I am not 
mistaken.

Is it possible to drop it for just Windows users?
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...

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.
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.
I see your point...

Cheers
Stefan
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.orgmailto:Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] SOSI support in QGIS

2014-06-27 Thread Larry Shaffer
Hi,

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.

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.

Sorry, won't have time to test on any other platforms for a couple of days.

[0] http://drive.dakotacarto.com/qgis/sosi-file-load.png

Regards,

Larry


On Fri, Jun 27, 2014 at 3:50 AM, Blumentrath, Stefan 
stefan.blumentr...@nina.no wrote:

  Hi Larry,



 Tanks for having a look at this.



 I shall send you the file off-list…



 Cheers

 Stefan





 *From:* la...@shafferinteractive.com [mailto:la...@shafferinteractive.com]
 *On Behalf Of *Larry Shaffer
 *Sent:* 27. juni 2014 11:37
 *To:* Blumentrath, Stefan
 *Cc:* Stott, James; qgis-developer@lists.osgeo.org
 *Subject:* Re: [Qgis-developer] SOSI support in QGIS



 Hi James,

 Can you share the dataset from Miljødirektoratet that you are testing? I
 can't get Google to translate the pages to English.



 Regards,


 Larry



 On Fri, Jun 27, 2014 at 2:43 AM, Blumentrath, Stefan 
 stefan.blumentr...@nina.no wrote:

 So it Works for Mac and Linux users?

 Yes, seems to work there.


 Does this work with the installer download of QGIS for Windows? I havent
 actually tried that.

 I doubt it, since the installer is also built based on OSGeo4W, if I am
 not mistaken.


 Is it possible to drop it for just Windows users?

 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...


 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.
 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.

 I see your point...


 Cheers
 Stefan
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] SOSI support in QGIS

2014-06-27 Thread Blumentrath, Stefan
Hi Larry,

Thanks for your efforts. I understand that you are especially busy right now…

I checked GDAL_DRIVER_PATH  and it was - just as you suspected for OSGeo4W – 
set properly to “C:\OSGeo4W\bin\gdalplugins”.
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.

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.

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)…
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.

Cheers
Stefan



From: la...@shafferinteractive.com [mailto:la...@shafferinteractive.com] On 
Behalf Of Larry Shaffer
Sent: 27. juni 2014 13:02
To: Blumentrath, Stefan
Cc: Stott, James; qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] SOSI support in QGIS

Hi,
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.
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.

Sorry, won't have time to test on any other platforms for a couple of days.

[0] http://drive.dakotacarto.com/qgis/sosi-file-load.png
Regards,

Larry

On Fri, Jun 27, 2014 at 3:50 AM, Blumentrath, Stefan 
stefan.blumentr...@nina.nomailto:stefan.blumentr...@nina.no wrote:
Hi Larry,

Tanks for having a look at this.

I shall send you the file off-list…

Cheers
Stefan


From: la...@shafferinteractive.commailto:la...@shafferinteractive.com 
[mailto:la...@shafferinteractive.commailto:la...@shafferinteractive.com] On 
Behalf Of Larry Shaffer
Sent: 27. juni 2014 11:37
To: Blumentrath, Stefan
Cc: Stott, James; 
qgis-developer@lists.osgeo.orgmailto:qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] SOSI support in QGIS

Hi James,
Can you share the dataset from Miljødirektoratet that you are testing? I can't 
get Google to translate the pages to English.

Regards,

Larry

On Fri, Jun 27, 2014 at 2:43 AM, Blumentrath, Stefan 
stefan.blumentr...@nina.nomailto:stefan.blumentr...@nina.no wrote:
So it Works for Mac and Linux users?
Yes, seems to work there.

Does this work with the installer download of QGIS for Windows? I havent 
actually tried that.
I doubt it, since the installer is also built based on OSGeo4W, if I am not 
mistaken.

Is it possible to drop it for just Windows users?
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...

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.
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.
I see your point...

Cheers
Stefan
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.orgmailto:Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] SOSI support in QGIS

2014-06-27 Thread Etienne Tourigny
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.




On Fri, Jun 27, 2014 at 11:18 AM, Blumentrath, Stefan 
stefan.blumentr...@nina.no wrote:

  Hi Larry,



 Thanks for your efforts. I understand that you are especially busy right
 now…



 I checked GDAL_DRIVER_PATH  and it was - just as you suspected for OSGeo4W
 – set properly to “C:\OSGeo4W\bin\gdalplugins”.

 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.



 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.



 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)…

 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.



 Cheers

 Stefan







 *From:* la...@shafferinteractive.com [mailto:la...@shafferinteractive.com]
 *On Behalf Of *Larry Shaffer
 *Sent:* 27. juni 2014 13:02

 *To:* Blumentrath, Stefan
 *Cc:* Stott, James; qgis-developer@lists.osgeo.org
 *Subject:* Re: [Qgis-developer] SOSI support in QGIS



 Hi,

 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.

 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.



 Sorry, won't have time to test on any other platforms for a couple of days.


 [0] http://drive.dakotacarto.com/qgis/sosi-file-load.png

 Regards,


 Larry



 On Fri, Jun 27, 2014 at 3:50 AM, Blumentrath, Stefan 
 stefan.blumentr...@nina.no wrote:

 Hi Larry,



 Tanks for having a look at this.



 I shall send you the file off-list…



 Cheers

 Stefan





 *From:* la...@shafferinteractive.com [mailto:la...@shafferinteractive.com]
 *On Behalf Of *Larry Shaffer
 *Sent:* 27. juni 2014 11:37
 *To:* Blumentrath, Stefan
 *Cc:* Stott, James; qgis-developer@lists.osgeo.org
 *Subject:* Re: [Qgis-developer] SOSI support in QGIS



 Hi James,

 Can you share the dataset from Miljødirektoratet that you are testing? I
 can't get Google to translate the pages to English.



 Regards,


 Larry



 On Fri, Jun 27, 2014 at 2:43 AM, Blumentrath, Stefan 
 stefan.blumentr...@nina.no wrote:

 So it Works for Mac and Linux users?

 Yes, seems to work there.


 Does this work with the installer download of QGIS for Windows? I havent
 actually tried that.

 I doubt it, since the installer is also built based on OSGeo4W, if I am
 not mistaken.


 Is it possible to drop it for just Windows users?

 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...


 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.
 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.

 I see your point...


 Cheers
 Stefan
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer





 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] SOSI support in QGIS

2014-06-27 Thread Blumentrath, Stefan
Hi Etienne,

Thanks for having a look at this issue too.

The thing is that GDAL (or more precise OGR) opens SOSI files properly but QGIS 
from OSGeo4W does not (this issue does not occur on Mac and Linux).
In QGIS the contained layers (points, lines, polygons) can be identified (we 
get the dialog to choose a layer), so also QGIS can access the SOSI file in 
principle. But these layers themselves are rejected as “Invalid data source” 
(tested with different SOSI files). OGR converts all layers from the file QGIS 
rejects e.g. to SQLite correctly.

Cheers
Stefan

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] SOSI support in QGIS

2014-06-26 Thread Stott, James
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
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] SOSI support in QGIS

2014-06-26 Thread Blumentrath, Stefan
Hi James,

and sorry for not having answered your earlier email on that issue.

On Windows I can reproduce your issue too. However, given that it worked on 
Mac, I suspect this is a packaging problem...
In other words my fault. I shall try to fix it with an update of the gdal-sosi 
package asap.
Yet, the Norwegian mapping authority mentioned that a 64bit build of the 
OpenFYBA library would be very much experimental... So no success guaranteed.
If we do not get it workin,g we would probably have to remove the gdal-sosi 
package (until it works properly).

Cheers
Stefan

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] SOSI support in QGIS

2014-06-26 Thread Larry Shaffer
Hi,

On Thu, Jun 26, 2014 at 7:04 AM, Stott, James fmro...@fylkesmannen.no
wrote:

  Hei Stefan,



 Thanks for looking at this again.



 Do you know why the SOSI option doesn’t appear in 32 bit version?



 With the release of 2.4 a day or so away, I wonder if its best to just
 remove the SOSI option from the file dialog box for the 2.4 release? That
 way people won’t be under the impression that QGIS can open SOSI when it
 can’t?


Are you sure it is specifically QGIS that can't open the file? Have you
tried GDAL directly. If there are problems with GDAL on your platform for
SOSI, but it works on others, I don't see how this should limit what is an
available feature in QGIS. It would then require fixing GDAL, or its
packaging, in this regard.

Please verify.

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota


 Don’t know if anyone else agrees?



 James



 *Fra:* Blumentrath, Stefan [mailto:stefan.blumentr...@nina.no]
 *Sendt:* 26. juni 2014 13:17
 *Til:* Stott, James; qgis-developer@lists.osgeo.org
 *Emne:* RE: SOSI support in QGIS



 Hi James,



 and sorry for not having answered your earlier email on that issue.



 On Windows I can reproduce your issue too. However, given that it worked
 on Mac, I suspect this is a packaging problem…

 In other words my fault. I shall try to fix it with an update of the
 gdal-sosi package asap.

 Yet, the Norwegian mapping authority mentioned that a 64bit build of the
 OpenFYBA library would be very much experimental… So no success guaranteed.

 If we do not get it workin,g we would probably have to remove the
 gdal-sosi package (until it works properly).



 Cheers

 Stefan



 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] SOSI support in QGIS

2014-06-26 Thread Blumentrath, Stefan
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-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] On Behalf Of Stott, James
Sent: 26. juni 2014 11:14
To: qgis-developer@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
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer