[GRASS-user] v.out.ogr & kml

maven apache wrote:

Hi:It seems that I have
encountered the same problem,actually you should reproject
your map by yourself if you are using a earlier
version.In the later version it can reproject
autoly.

i.e. a bug in GDAL/OGR got fixed so you need a newish version of
that.

you might also try v.out.gpsbabel which attempts to reproject to
WGS84 LL in GRASS. (less than optimal but it seems to work)

Hamish

> encountered the same problem,actually you should reproject
> your map by yourself if you are using a earlier
> version.In the later version it can reproject
> autoly.

i.e. a bug in GDAL/OGR got fixed so you need a newish version of
that.

So this means that using gdal/ogr >= version 1.6 would automatically reproject
data exported from state plane into WGS84?

Thanks,
Timmie

2009/6/24 Tim Michelsen <timmichelsen@gmx-topmail.de>

encountered the same problem,actually you should reproject
your map by yourself if you are using a earlier
version.In the later version it can reproject
autoly.

i.e. a bug in GDAL/OGR got fixed so you need a newish version of
that.

So this means that using gdal/ogr >= version 1.6 would automatically reproject
data exported from state plane into WGS84?

I think so but I am not sure,maybe you can have try .
Actually,I have reproject the map-----I create a new location with the latitude (epsg 4326),then use r.proj commond to reproject the map,however when I display the map I found there is a very serious distortion,the exported kml is also …So I have give up the idea.

Thanks,
Timmie


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Actually,I have reproject the map-----I create a new location with the

latitude (epsg 4326),then use r.proj commond to reproject the map,however when I
display the map I found there is a very serious distortion,the exported kml is
also ....So I have give up the idea.
I am talking about vectors.
Seem you are talking about raster data.
Well, I would like to have the possibility to export a raster with its colors
and legend.
But that's another story.

latitude (epsg 4326),then use r.proj commond to reproject the map,however when I

Sorry for my slip of pen . I used the v.proj. The data I handled is vector too.

Well, I would like to have the possibility to export a raster with its colors
and legend.

Look at r.out.gmap in the addons:
http://grass.osgeo.org/wiki/GRASS_AddOns#r.out.gmap

Or you can do it by hand a bit like this:

# Export map to Google Earth tiles.

map=$1

# Export map as png and make null data transparent
g.region rast=$map
export `g.region zoom=$map -lg` # Get map bounds in Lat Long
r.out.png $map
mogrify -transparent white $map.png

# Georeference and reproject output
gdal_translate -a_srs EPSG:4326 -a_ullr $nw_long $nw_lat $se_long $se_lat $map.png $map.tif
gdalwarp -t_srs EPSG:4326 -rc $map.tif $map\4326.tif

# Tile for Google Earth
gdal2tiles.py -title $map -forcekml $map\4326.tif $map

--

Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.stevenson@manchester.ac.uk