[Qgis-user] Google earth kml file not opening in Qgis

2012-07-27 Thread Harikumar Sivanandan
Sir,
I exported a kml file consisting of roads, paths and lines from My places
in Google maps. It is opening in Google Earth, but I am not able to open it
as a vector layer in QGIS.
However I am able to open a Google earth kml file consisting of only points
in QGIS. What should I do to open a kml file consisting of lines?
With regards
Harikumar
Kollam, India
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Google earth kml file not opening in Qgis

2012-07-30 Thread Harish
Did you save as .kmz or .kml from My places?

On Sat, Jul 28, 2012 at 10:39 AM, Harikumar Sivanandan
wrote:

> Sir,
> I exported a kml file consisting of roads, paths and lines from My places
> in Google maps. It is opening in Google Earth, but I am not able to open it
> as a vector layer in QGIS.
> However I am able to open a Google earth kml file consisting of only
> points in QGIS. What should I do to open a kml file consisting of lines?
> With regards
> Harikumar
> Kollam, India
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>


-- 
Harish Kumar Solanki, Assistant Professor
National Institute of Rural Development (NIRD),
Ministry of Rural Development, Government of India
Jaipur, Rajasthan, India- Pin-302006

Email- hksola...@nird.gov.in, harry.om2...@gmail.com,
Tele-Fax-0141-2209905, Mo.- 09214446732, 09414291732
Website-  http://www.nird.org.in,
http://watershed.rajasthan.gov.in/
LinkedIn: www.linkedIn.com/in/hksolanki

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


Re: [Qgis-user] Google earth kml file not opening in Qgis

2012-07-30 Thread Noli Sicad
Just convert your kml to shapefile, then you can easily open shapefile in QGIS.

You can use OGR2OGR to convert kml to shapefile in FWTools

http://fwtools.maptools.org/

ogr2ogr -f 'ESRI Shapefile' output.shp input.kml


Details in this site:
http://gis.stackexchange.com/questions/98/how-can-i-convert-between-kml-and-esris-shapefile-format

Noli


On 7/31/12, Harish  wrote:
> Did you save as .kmz or .kml from My places?
>
> On Sat, Jul 28, 2012 at 10:39 AM, Harikumar Sivanandan
> wrote:
>
>> Sir,
>> I exported a kml file consisting of roads, paths and lines from My places
>> in Google maps. It is opening in Google Earth, but I am not able to open
>> it
>> as a vector layer in QGIS.
>> However I am able to open a Google earth kml file consisting of only
>> points in QGIS. What should I do to open a kml file consisting of lines?
>> With regards
>> Harikumar
>> Kollam, India
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>
>
> --
> Harish Kumar Solanki, Assistant Professor
> National Institute of Rural Development (NIRD),
> Ministry of Rural Development, Government of India
> Jaipur, Rajasthan, India- Pin-302006
>
> Email- hksola...@nird.gov.in, harry.om2...@gmail.com,
> Tele-Fax-0141-2209905, Mo.- 09214446732, 09414291732
> Website-  http://www.nird.org.in,
> http://watershed.rajasthan.gov.in/
> LinkedIn: www.linkedIn.com/in/hksolanki
> 
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Google earth kml file not opening in Qgis

2012-07-31 Thread Harish
.kml can also be opened easily in QGIS, but editing is not possible.

On Tue, Jul 31, 2012 at 11:04 AM, Noli Sicad  wrote:

> Just convert your kml to shapefile, then you can easily open shapefile in
> QGIS.
>
> You can use OGR2OGR to convert kml to shapefile in FWTools
>
> http://fwtools.maptools.org/
>
> ogr2ogr -f 'ESRI Shapefile' output.shp input.kml
>
>
> Details in this site:
>
> http://gis.stackexchange.com/questions/98/how-can-i-convert-between-kml-and-esris-shapefile-format
>
> Noli
>
>
> On 7/31/12, Harish  wrote:
> > Did you save as .kmz or .kml from My places?
> >
> > On Sat, Jul 28, 2012 at 10:39 AM, Harikumar Sivanandan
> > wrote:
> >
> >> Sir,
> >> I exported a kml file consisting of roads, paths and lines from My
> places
> >> in Google maps. It is opening in Google Earth, but I am not able to open
> >> it
> >> as a vector layer in QGIS.
> >> However I am able to open a Google earth kml file consisting of only
> >> points in QGIS. What should I do to open a kml file consisting of lines?
> >> With regards
> >> Harikumar
> >> Kollam, India
> >>
> >> ___
> >> Qgis-user mailing list
> >> Qgis-user@lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/qgis-user
> >>
> >>
> >
> >
> > --
> > Harish Kumar Solanki, Assistant Professor
> > National Institute of Rural Development (NIRD),
> > Ministry of Rural Development, Government of India
> > Jaipur, Rajasthan, India- Pin-302006
> >
> > Email- hksola...@nird.gov.in, harry.om2...@gmail.com,
> > Tele-Fax-0141-2209905, Mo.- 09214446732, 09414291732
> > Website-  http://www.nird.org.in,
> > http://watershed.rajasthan.gov.in/
> > LinkedIn: www.linkedIn.com/in/hksolanki
> > 
> >
>



-- 
Harish Kumar Solanki, Assistant Professor
National Institute of Rural Development (NIRD),
Ministry of Rural Development, Government of India
Jaipur, Rajasthan, India- Pin-302006

Email- hksola...@nird.gov.in, harry.om2...@gmail.com,
Tele-Fax-0141-2209905, Mo.- 09214446732, 09414291732
Website-  http://www.nird.org.in,
http://watershed.rajasthan.gov.in/
LinkedIn: www.linkedIn.com/in/hksolanki
 
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Google earth kml file not opening in Qgis

2012-07-31 Thread Andre Joost

Am 31.07.12 13:16, schrieb Harish:

.kml can also be opened easily in QGIS, but editing is not possible.



Not all kml can be opened. I have created some of my own, with links to 
external symbols. Qgis won't load that files, and gives no error 
messages. In Google maps and Google Earth they work fine.


Converting with gpsbabel to gpx makes the file content accessible.

Greetings,
André Joost

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


Re: [Qgis-user] Google earth kml file not opening in Qgis

2012-07-31 Thread Ralf Wessels

  
  
maybe it is an old kml-version?
  try to open it in Google Earth (actual version) and save it again
  - to be sure to have a valid file.
  ralf
  


  

  
  Am 31.07.2012 13:30, schrieb Andre Joost:

Am
  31.07.12 13:16, schrieb Harish:
  
  .kml can also be opened easily in QGIS,
but editing is not possible.


  
  
  Not all kml can be opened. I have created some of my own, with
  links to external symbols. Qgis won't load that files, and gives
  no error messages. In Google maps and Google Earth they work fine.
  
  
  Converting with gpsbabel to gpx makes the file content accessible.
  
  
  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] Google earth kml file not opening in Qgis

2012-07-31 Thread Andre Joost

Am 31.07.12 14:03, schrieb Ralf Wessels:

maybe it is an old kml-version?
try to open it in Google Earth (actual version) and save it again - to be sure
to have a valid file.
ralf


No change, but:
Importing kml gives a list of layers to select. If I dont select 
anything, i get nothing ;-)


As long as I have only one folder in the kml, it opens at once.

Not very intuitive, default should be to load all available layers. 
Shapefile and GPX do it that way round.


Greetings,
André Joost


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


Re: [Qgis-user] Google earth kml file not opening in Qgis

2012-07-31 Thread Andre Joost

Am 31.07.12 14:32, schrieb Andre Joost:

Am 31.07.12 14:03, schrieb Ralf Wessels:

maybe it is an old kml-version?
try to open it in Google Earth (actual version) and save it again - to
be sure
to have a valid file.
ralf


No change, but:
Importing kml gives a list of layers to select. If I dont select
anything, i get nothing ;-)

As long as I have only one folder in the kml, it opens at once.



Just another thing: It is possible to have points and tracks in the same 
folder with Google Earth kml, but Qgis does not like that, and displays 
only one geometry type.


HTH,
André joost

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


Re: [Qgis-user] Google earth kml file not opening in Qgis

2012-07-31 Thread Ralf Wessels
Andre is right - qgis (like other gis systems too) cannot display 
points, lines and polygons in one layer. It has to be either points or 
lines or polygons. In a kml-file this is no problem.
So if you try to load a kml-file with points, lines and polygons, qgis 
just loads the first object (and all same objects e.g. points) which is 
saved in the kml-file.
Try to change the display order of the kml-file in Google Earth and you 
will see the effect.

ralf

Am 31.07.2012 14:51, schrieb Andre Joost:

Am 31.07.12 14:32, schrieb Andre Joost:

Am 31.07.12 14:03, schrieb Ralf Wessels:

maybe it is an old kml-version?
try to open it in Google Earth (actual version) and save it again - to
be sure
to have a valid file.
ralf


No change, but:
Importing kml gives a list of layers to select. If I dont select
anything, i get nothing ;-)

As long as I have only one folder in the kml, it opens at once.



Just another thing: It is possible to have points and tracks in the 
same folder with Google Earth kml, but Qgis does not like that, and 
displays only one geometry type.


HTH,
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] Google earth kml file not opening in Qgis

2012-07-31 Thread Zoltan Szecsei

On 2012/07/31 16:30, Ralf Wessels wrote:
Andre is right - qgis (_like other gis systems too)_ cannot display 
points, lines and polygons in one layer. It has to be either points or 
lines or polygons. In a kml-file this is no problem.


The "like other gis systems" part of your statement is total hogwash. Sorry.
You've obviously only been brought up on a diet of ShapeFiles.

Apologies, but you've touched a nerve here. Far too many people have 
only seen one product, and have possibly even just based the development 
of their products on Shapefiles.


If you want to flame me for this, please start a new thread, so that my 
rant does not end up hijacking this thread.


Regards,
Zoltan

--

===
Zoltan Szecsei PrGISc [PGP0031]
Geograph (Pty) Ltd.
P.O. Box 7, Muizenberg 7950, South Africa.

65 Main Road, Muizenberg 7945
Western Cape, South Africa.

34° 6'16.35"S 18°28'5.62"E

Tel: +27-21-7884897  Mobile: +27-83-6004028
Fax: +27-86-6115323 www.geograph.co.za
===

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


Re: [Qgis-user] Google earth kml file not opening in Qgis

2012-07-31 Thread Andre Joost

Am 31.07.2012 16:51, schrieb Zoltan Szecsei:

On 2012/07/31 16:30, Ralf Wessels wrote:

Andre is right - qgis (_like other gis systems too)_ cannot display
points, lines and polygons in one layer. It has to be either points or
lines or polygons. In a kml-file this is no problem.


The "like other gis systems" part of your statement is total hogwash.
Sorry.
You've obviously only been brought up on a diet of ShapeFiles.



To calm down:

It has some advantages to have different geometry types separately in 
different layers.


The GPX import in Qgis makes three different layers out of points, 
routes and tracks within the same file. It would be nice to implement 
this in kml import, if several geometry types are encountered in the 
same folder. This is far better than just throw away elements of other 
types.


Greetings,
Andre Joost

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


Re: [Qgis-user] Google earth kml file not opening in Qgis

2012-08-01 Thread Nathan Woodrow
I agree. I think having mixed geometries per layer can make things a
hell of a lot harder and I would rather have a single geom type per
layer.  I used to use MapInfo and it can store different geom types in
one layer, this makes it hard to style (more of a limitation of
MapInfo I admit), hard to work with from a programming point of view
(you now have to check the geom type each time because it might have
changed), and just a pain to manage.  It makes sense to keep things
apart.

Like the GPX import, QGIS should handle multi geom layers better by
just splitting it out into many layers.

- Nathan


On Wed, Aug 1, 2012 at 1:02 AM, Andre Joost  wrote:
> Am 31.07.2012 16:51, schrieb Zoltan Szecsei:
>>
>> On 2012/07/31 16:30, Ralf Wessels wrote:
>>>
>>> Andre is right - qgis (_like other gis systems too)_ cannot display
>>>
>>> points, lines and polygons in one layer. It has to be either points or
>>> lines or polygons. In a kml-file this is no problem.
>>
>>
>> The "like other gis systems" part of your statement is total hogwash.
>> Sorry.
>> You've obviously only been brought up on a diet of ShapeFiles.
>>
>
> To calm down:
>
> It has some advantages to have different geometry types separately in
> different layers.
>
> The GPX import in Qgis makes three different layers out of points, routes
> and tracks within the same file. It would be nice to implement this in kml
> import, if several geometry types are encountered in the same folder. This
> is far better than just throw away elements of other types.
>
> Greetings,
> Andre 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