Ah,Thanks Peter,but I am not familiar with the script without the grass.....<br><br><div class="gmail_quote">2009/6/19 "Peter Löwe" <span dir="ltr"><<a href="mailto:peter.loewe@gmx.net">peter.loewe@gmx.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Maven,<br>
<br>
using v.out.ogr for KML export will NOT transform your vector in geographic coordinates [required by GoogleEarth]. You are creating a KML-file of UTM coordinates instead.<br>
<br>
This script includes the necessary transformation step:<br>
<a href="http://grasslab.gisix.com/scripts/v.out.kml/" target="_blank">http://grasslab.gisix.com/scripts/v.out.kml/</a><br>
<br>
Best,<br>
Peter<br>
<br>
<br>
<br>
Message: 7<br>
Date: Fri, 19 Jun 2009 10:40:20 +0800<br>
From: maven apache <<a href="mailto:apachemaven0@gmail.com">apachemaven0@gmail.com</a>><br>
Subject: [GRASS-user] v.out.ogr to KML ERROR 1: Latitude is invalide<br>
To: <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
Message-ID:<br>
<<a href="mailto:b6ae15040906181940u733d7369tb267be73d167856d@mail.gmail.com">b6ae15040906181940u733d7369tb267be73d167856d@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
This is a vector layer transfered from a raster and its general info can be<br>
seen as follows:<br>
+----------------------------------------------------------------------------+<br>
| Layer: swi_0@PERMANENT<br>
<br>
| Mapset: PERMANENT<br>
<br>
| Location: newlocation<br>
<br>
| Database: D:/GrassDataBase<br>
<br>
| Title:<br>
<br>
| Map scale: 1:1<br>
<br>
| Map format: native<br>
<br>
| Name of creator: Administrator<br>
<br>
| Organization:<br>
<br>
| Source date: Thu Jun 18 20:51:48 2009<br>
<br>
|----------------------------------------------------------------------------<br>
| Type of Map: vector (level: 2)<br>
<br>
|<br>
<br>
| Number of points: 0 Number of areas: 88<br>
<br>
| Number of lines: 0 Number of islands: 79<br>
<br>
| Number of boundaries: 229 Number of faces: 0<br>
<br>
| Number of centroids: 84 Number of kernels: 0<br>
<br>
|<br>
<br>
| Map is 3D: 0<br>
<br>
| Number of dblinks: 1<br>
<br>
|<br>
<br>
| Projection: Universe Transverse Mercator (zone 0)<br>
<br>
| N: 2762370.84493965 S: 2668889.78644383<br>
<br>
| E: 636604.74247833 W: 592287.35339113<br>
<br>
|<br>
<br>
| Digitization threshold: 0<br>
<br>
| Comments:<br>
<br>
|<br>
<br>
+----------------------------------------------------------------------------+<br>
then I want to export it to kml and add it to the google earth, I use the<br>
commond:<br>
g.region vect=swi_blue@PERMANENT<br>
v.out.ogr input=swi_blue@PERMANENT type=area dsn=d:/blueNew.kml layer=1<br>
format=KML<br>
and I got the errors:<br>
---------------------------------------------------------------<br>
arning 1: Layer name 'swi_blue@PERMANENT' adjusted to 'swi_blue_PERMANENT'<br>
for XML validity.<br>
<br>
Exporting 4893 areas (may take some time) ...<br>
ERROR 1: Latitude 2764980.037140 is invalid. Valid range is [-90,90]. This<br>
warning will not be issued any more<br>
Warning 1: Longitude 638073.992861 has been modified to fit into range<br>
[-180,180]. This warning will not be issued any more<br>
<br>
<br>
<br>
9259 features written<br>
<br>
4476 features without category written<br>
----------------------------------------------------------------<br>
it seems that there is something wrong with the Coordinate,but Latitude<br>
2764980.037140 is the same with the general info from the command<br>
v.infomap=''''''.<br>
I wonder it is my problem or the grass?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://lists.osgeo.org/pipermail/grass-user/attachments/20090619/4faa1346/attachment.html" target="_blank">http://lists.osgeo.org/pipermail/grass-user/attachments/20090619/4faa1346/attachment.html</a><br>
<font color="#888888"><br>
--<br>
Dr. Peter Löwe<br>
<br>
<<a href="mailto:peter.loewe@gmx.de">peter.loewe@gmx.de</a>><br>
<br>
<br>
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!<br>
Jetzt freischalten unter <a href="http://portal.gmx.net/de/go/maxdome01" target="_blank">http://portal.gmx.net/de/go/maxdome01</a><br>
</font></blockquote></div><br>