[Qgis-user] Fwd: Can't add kml-file to QGIS

2012-09-20 Thread Johan Nilsson
Sorry, I just mailed to André and not the list. I don't know why...but here
it come.

-- Forwarded message --
From: Johan Nilsson 
Date: 2012/9/20
Subject: Re: [Qgis-user] Can't add kml-file to QGIS
To: Andre Joost 


2012/9/20 Andre Joost 

> Am 20.09.2012 14:06, schrieb Johan Nilsson:
>
>> I have exported some track-logs from a Android app called
>> *'GPS-Essential'* and
>>
>> I can add them to Google map and to Google Earth. But when I triy to add
>> (Layer-->Vector Layer to QGIS i get this message:
>>
>>   /home/joni/GIS/GPSE/kml/Track-**09_19_12 11_42_21.kml is not a valid or
>> recognized data source
>>
>>
> Can you open the file with a text editor?
> Qgis does not like folders with mixed content (points, lines and/or
> polygons). Furthermore,  tags can not be read.
>
>  The strange thing was that some kml-files was able to open but not all
(but everyone in Google Maps. Yes. I opened with gedit, a text-editor and
find that they had different structure. The one that was able to open,,
separate the xyz with comma/space separation:

*]]>#track17.585611,59.838646,31.4
17.585642,59.8386,31.0 17.585693,59.838562,31.3 17.585735,59.838512,36.4
17.585785,59.83847,37.8 17.585827,59.838425,34.8 17.585857,59.83837,34.9
17.58585,59.838303,35.3 17.585823,59.838257,
*
and the ones I could not open have this:
...17.673456 59.870106 16.617.673555
59.87012 16.917.673653 59.870136
16.617.67375 59.870148
16.617.673853 59.87016
17.217.673935 59.870182 18.7<

I will ask the developer about this..If he have change, or If i have
exported in different ways.

I'm totally new to use SQL/relations databases with ArcGIS and QGIS, and
are just now trie to learning. I assume that sqlite lack

>
>
>> Are there any other tools to convert to for instance shape-files.
>> GPS-Essential save their data in a sqlite-file, so I can export from
>> asql-manager to. I don't know how I open a sqlite db in QGIS either.
>>
>
> Just as simple as Add new spatialite layer, if it is a spatialite sqlite
> database. Otherwise it would be a non-spatial layer. You can try Qgis DB
> Manager to look inside the database.
>

the sqlite seems to lack spatial data, even if there are coordinates. Will
try to learn more about this...

>
> Has GPS-Essential any other output options? I would assume GPX, beeing
> standard in GPS data exchange. At least Google Earth does IIRC.
>

Another thing was that the kml-files that opened was not placed right with
my background map (RT90 2,5 gon V (metric coordinate system) despite I
checked 'on the fly reprojection' and I thougt all kml was in WGS 84 by
default.

/Cheers



>
> Greetings,
> André Joost
>
> __**_
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Fwd: Can't add kml-file to QGIS

2012-09-20 Thread Wesley Roberts
Hi Johan et al,

I have had the same problem in the past. I emailed the developer but have
not had a reply. Our workaround involved exporting as a gpx file and using
that. I think that the problem lies with additional xml data within the kml
relating to the time of data capture. Use GPX when you export from GPS
Essentials.

HTH,

Wesley


On Thu, Sep 20, 2012 at 8:37 PM, Johan Nilsson  wrote:

> Sorry, I just mailed to André and not the list. I don't know why...but
> here it come.
>
> -- Forwarded message --
> From: Johan Nilsson 
> Date: 2012/9/20
> Subject: Re: [Qgis-user] Can't add kml-file to QGIS
> To: Andre Joost 
>
>
> 2012/9/20 Andre Joost 
>
>> Am 20.09.2012 14:06, schrieb Johan Nilsson:
>>
>>> I have exported some track-logs from a Android app called
>>> *'GPS-Essential'* and
>>>
>>> I can add them to Google map and to Google Earth. But when I triy to add
>>> (Layer-->Vector Layer to QGIS i get this message:
>>>
>>>   /home/joni/GIS/GPSE/kml/Track-**09_19_12 11_42_21.kml is not a valid
>>> or
>>> recognized data source
>>>
>>>
>> Can you open the file with a text editor?
>> Qgis does not like folders with mixed content (points, lines and/or
>> polygons). Furthermore,  tags can not be read.
>>
>>  The strange thing was that some kml-files was able to open but not all
> (but everyone in Google Maps. Yes. I opened with gedit, a text-editor and
> find that they had different structure. The one that was able to open,,
> separate the xyz with comma/space separation:
>
> *]]>#track17.585611,59.838646,31.4
> 17.585642,59.8386,31.0 17.585693,59.838562,31.3 17.585735,59.838512,36.4
> 17.585785,59.83847,37.8 17.585827,59.838425,34.8 17.585857,59.83837,34.9
> 17.58585,59.838303,35.3 17.585823,59.838257,
> *
> and the ones I could not open have this:
> ...17.673456 59.870106 16.617.673555
> 59.87012 16.917.673653 59.870136
> 16.617.67375 59.870148
> 16.617.673853 59.87016
> 17.217.673935 59.870182 18.7<
>
> I will ask the developer about this..If he have change, or If i have
> exported in different ways.
>
> I'm totally new to use SQL/relations databases with ArcGIS and QGIS, and
> are just now trie to learning. I assume that sqlite lack
>
>>
>>
>>> Are there any other tools to convert to for instance shape-files.
>>> GPS-Essential save their data in a sqlite-file, so I can export from
>>> asql-manager to. I don't know how I open a sqlite db in QGIS either.
>>>
>>
>> Just as simple as Add new spatialite layer, if it is a spatialite sqlite
>> database. Otherwise it would be a non-spatial layer. You can try Qgis DB
>> Manager to look inside the database.
>>
>
> the sqlite seems to lack spatial data, even if there are coordinates. Will
> try to learn more about this...
>
>>
>> Has GPS-Essential any other output options? I would assume GPX, beeing
>> standard in GPS data exchange. At least Google Earth does IIRC.
>>
>
> Another thing was that the kml-files that opened was not placed right with
> my background map (RT90 2,5 gon V (metric coordinate system) despite I
> checked 'on the fly reprojection' and I thougt all kml was in WGS 84 by
> default.
>
> /Cheers
>
>
>
>>
>> Greetings,
>> André Joost
>>
>> __**_
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/**mailman/listinfo/qgis-user
>>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>


-- 
Dr Wesley Roberts
jwesrobe...@gmail.com
Cell: 083 5355 646
Work: 021 - 888 2490
skype: roberts-w
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Fwd: Can't add kml-file to QGIS

2012-09-21 Thread Andre Joost

Am 20.09.2012 20:37, schrieb Johan Nilsson:

Sorry, I just mailed to André and not the list. I don't know why...but here
it come.



Ok, just for the record my answer:

The  might kill the kml import in Qgis. If your software does 
not offer export to other formats, load the data into Google Earth, and 
try gpx export from there.


For the sqlite database:
Qgis can also read delimited text (such as csv) with columns for x and y 
coordinates. It should be possible to export in such a way from 
non-spatialite sqlite databases, but I have no experience with that.


Greetings,
André Joost

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