<div>Hello there,</div><div><br></div>I think KML files are always in the EPSG:4326 (WGS 84). Therefore, to import them in QGIS, you must always assume that CRS. If you want to overlay it over other data in a diferent CRS, you must turn the "On Fly CRS transformation" in the project settings.<div>
<br></div><div>EPSG:4326 (WGS 84) and EPSG: <span style>900913 (Google Mercator) are not the same, one is a </span>geographic coordinate system (Lat, Long in degrees), the other is a projected cartesian system (X, Y in meters). Thats why the shape will not be in the right place, and won't be with the right size. </div>
<div><br></div><div>In a EPSG:900913 project, without the "On the Fly transformation" checked, QGIS will always assume that all layers are in that same CRS, therefore will assume the coordinates in meters instead of degrees.</div>
<div><div><br></div><div>Hope I helped.</div><div><br></div><div>Alexandre Neto<br><br><div class="gmail_quote">On Fri, Feb 10, 2012 at 4:41 PM, spiderplant0 <span dir="ltr"><<a href="mailto:spiderplant0@gmail.com">spiderplant0@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am having problems importing KML vectors into QGIS.<br>
To try and figure out whats going wrong I carried out an experiment...<br>
<br>
In QGIS, created a simple vector shapefile containing one polygon (set to<br>
EPSG900913).<br>
Used QGIS to save it as an KML.<br>
Tested this KML out in Google Earth - the polygon was in the correct place -<br>
so far so good.<br>
Imported the KML back into QGIS ( Menu > Layer > Add Vector layer). This<br>
doesnt work. The polygon is distorted, in completely the wrong place and<br>
very small (maybe its regarding the degrees latitude and longitude as<br>
metres?)<br>
<br>
I notice there is no mention of the map projection in the KML. How does it<br>
know what to use? Under the layer properties in QGIS it seems to be set to<br>
'EPSG:4326 - WGS 84'. This is not what I want (EPSG900913). But I believe<br>
these EPSGs are similar and so doesnt account for the massive change in<br>
position, size, etc. Changing the CRS in layer properties didnt help.<br>
<br>
The only way I could figure out to get it to display properly was to 'save<br>
as shapefile' and set to  EPSG900913. Then reload this shape file into QGIS.<br>
<br>
Is there a simpler way. Ie get QGIS to display the KML directly?<br>
<br>
Here is a link to the shapefile (test3_epsg900913) and the KML<br>
(test3b.kml)...<br>
<a href="https://docs.google.com/open?id=0B93lksnTC7_cMGMzMTNiMTEtNThiNi00ZjQ5LWIzZTMtNzg2MjZhMmM3ZTIy" target="_blank">https://docs.google.com/open?id=0B93lksnTC7_cMGMzMTNiMTEtNThiNi00ZjQ5LWIzZTMtNzg2MjZhMmM3ZTIy</a><br>

<a href="https://docs.google.com/open?id=0B93lksnTC7_cMGMzMTNiMTEtNThiNi00ZjQ5LWIzZTMtNzg2MjZhMmM3ZTIy" target="_blank">https://docs.google.com/open?id=0B93lksnTC7_cMGMzMTNiMTEtNThiNi00ZjQ5LWIzZTMtNzg2MjZhMmM3ZTIy</a><br>

The polygon should appear on top of an island of the coast of Scotland.<br>
I'm using QGIS 1.7.3.<br>
<br>
Thank.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.n6.nabble.com/KML-import-into-QGIS-problems-and-confusion-tp4383869p4383869.html" target="_blank">http://osgeo-org.1560.n6.nabble.com/KML-import-into-QGIS-problems-and-confusion-tp4383869p4383869.html</a><br>

Sent from the Quantum GIS - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</font></span></blockquote></div><br></div></div>