[Qgis-user] KML to GoogleEarth

percy langa percylanga at gmail.com
Thu Jul 28 05:18:47 PDT 2011


Well said Matt. My understanding is CRS could use a lot of improvement.

Cheers!

On Thu, Jul 28, 2011 at 12:16 PM, Matt Boyd <mattslists at gmail.com> wrote:

> Hi Walter,
> I'm not sure what your understanding of qgis is but it deals with
> pretty much every projection you can throw at it and the project
> projection/CRS shouldn't really cause any issues if all the
> projections are set correctly and the translations are working.
>
> Project CRS: the projection you'll see displayed on the map on the screen.
>
> Layer/item CRS: with on the fly reprojection enabled you can load a
> file with pretty much any projection and QGIS will reproject the data
> as required, it won't change the projection of the file you've loaded
> the and if you want to reproject it permanently you'll need to go the
> "save as" route and tell it what projection you want it to save the
> new file in. When you create a new vector layer you have the option to
> create it in the project or any other CRS.
>
> eg: You're able to load a file with CRS "A" into a project with CRS
> "B" then load another file with CRS "C" and save the file that's CRS
> "A" as CRS "D".
>
> The disadvantage to the flexibility of all of this is that
> occasionally QGIS won't find the CRS or the projection file or you'll
> get confused as to which CRS the file/layer your working in.
>
> The point to what I'm saying is that you shouldn't need to create a
> new project or worry too much about the default CRS if what you want
> to do is reproject the vector files so they're compatible with GE. You
> do need to know what the CRS of the in and out files are though.
>
> If you're able to send me through a small file as an example to show
> what you want to do I can have a look.
>
> Regards
> Matt
>
>
> On Thu, Jul 28, 2011 at 5:41 PM, Walter Ludwick <wludwick at mac.com> wrote:
> > 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
> >
> >
> >
> > _______________________________________________
> > 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/3fd575f7/attachment.html>


More information about the Qgis-user mailing list