[Qgis-user] KML to GoogleEarth

Walter Ludwick wludwick at mac.com
Thu Jul 28 00:41:44 PDT 2011


Hey, Percy: That's a good idea about the GPS exchange format (i had forgotten that GE reads GPX, tho i have used it for mapping trails exported from my GPS in the past). Unfortunately it doesn't work for polygon data (as contained in this zoning map that is the layer i want to export), per the following error msg:

Export to vector file failed.
Error: creation of layer failed (OGR error:Geometry type of `Polygon' not supported in GPX.
)

As to Giovanni's suggestion: it makes sense, so i have changed the CRS default at a global level to this:
            +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs   
,but that only works on whatever new layers i may create, the dialog says. 

So, since QGIS can't do the xlation for me on export (i.e. Layer -> "save as" KML, with WGS84 set for CRS), i guess i will have to go back to sources and reload all my data into new layers with the CRS reset to WGS84. This could take some time, but it does give me a way forward, at least. 

Thanks for all your help, folks!        /w


On Jul 27, 2011, at 2:46 PM, percy langa wrote:

> Works for me >> Qgis 1.6 >> CRS: WGS84, EPSG:4326, 3452
> 
> Also try saving to GPS exchange format, then open in google earth.
> 
> Cheers!
> Percy
> 
> On Wed, Jul 27, 2011 at 3:07 PM, Giovanni Manghi <giovanni.manghi at gmail.com> wrote:
> Tha  probably your shapefile is missing the .prj file, so when you load
> it into QGIS it will probably be given the wrong CRS. Change it manually
> then try again "save as..." and export in WGS84.
> 
> cheers
> 
> -- Giovanni --
> 
> On Wed, 2011-07-27 at 13:13 +0100, Walter Ludwick wrote:
> > Hey, Saber: Thanks for the quick reply and explicit instructions.
> >
> > It was easy to do, i gave it a try -but still the same condition results, alas (i.e. the KML saved, even using that WGS84 as CRS, is interpreted by Google Earth as a set of polygons that covers the entire globe).
> >
> > I'm going to keep flailing, trying whatever other CRS seems likely, but if there be any further ideas of things i might try, please don't hesitate to suggest!
> >
> > /w
> >
> >
> > On Jul 27, 2011, at 12:29 PM, Saber Razmjooei wrote:
> >
> > > The CRS you need is EPSG:4326
> > > To find it easily, in search section change Authority to EPSG and search
> > > for ID.
> > > Type 4326 and highlight the line from Coordinate Reference System:
> > > WGS84   EPSG:4326     3452
> > > Click OK.
> > >
> > >
> > >
> > >> As a complete n00b to this list -also very new to QGIS and GIS in general-
> > >> i am having a problem that is i hope trivial to solve, for one of you with
> > >> more experience!
> > >>
> > >> Essentially: to take a (vector) layer from QGIS and "save as..." KML, if i
> > >> pass that dialog with defaults selected, i get a .KML file that doesn't
> > >> make much sense to Google Earth -that is to say, Google Earth can read and
> > >> will display the polygons, perhaps even in the right shape, tho i cannot
> > >> be sure about that, because they display as lines that pretty much cover
> > >> the entire globe!
> > >>
> > >> The one thing i can see that i think might be related to this problem is,
> > >> the CRS (Co-ordinate Reference System) parameter, which appears in the
> > >> "Save as..." dialog box with "Original CRS" as the default parameter...
> > >> but then when i push the "browse" button, i am faced with an immense
> > >> number of possibilities from which to choose, about which i have no idea.
> > >>
> > >> Can anyone shed some light, and perhaps suggest a CRS that just might
> > >> work? The geography i am trying to describe is in coastal Portugal, if
> > >> that makes any difference...       /w
> > >>
> > >>
> > >> _______________________________________________
> > >> Qgis-user mailing list
> > >> Qgis-user at lists.osgeo.org
> > >> http://lists.osgeo.org/mailman/listinfo/qgis-user
> > >>
> > >
> > >
> >
> > _______________________________________________
> > Qgis-user mailing list
> > Qgis-user at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/qgis-user
> 
> 
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20110728/3a1b9747/attachment.html>


More information about the Qgis-user mailing list