[gdal-dev] transformation from WGS84 to Sphere

2010-03-03 Thread agnes123

Dear all,

i am trying to projection a shapefile from geodatic projection in WGS84
datum to geodatic projection in sphere datum by using the utility ogr2ogr
.

I defined the original projection as:
'+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs'

and the target projection as :
'+proj=longlat +a=6370997 +b=6370997 +no_defs'

but the result seems no change as compare with the one in WGS84 datum. Did i
miss out something in the above projection definition or ogr2ogr does not
support the datum transformation between WGS84 and sphere? 

Regards,
Agnes
-- 
View this message in context: 
http://n2.nabble.com/transformation-from-WGS84-to-Sphere-tp4672744p4672744.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


Re: [gdal-dev] transformation from WGS84 to Sphere

2010-03-03 Thread Jean-Claude REPETTO

agnes123 a écrit :


i am trying to projection a shapefile from geodatic projection in WGS84
datum to geodatic projection in sphere datum by using the utility ogr2ogr
.

I defined the original projection as:
'+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs'

and the target projection as :
'+proj=longlat +a=6370997 +b=6370997 +no_defs'

but the result seems no change as compare with the one in WGS84 datum. Did i
miss out something in the above projection definition or ogr2ogr does not
support the datum transformation between WGS84 and sphere? 



Hello,

The target parameters you have used define a spheroid, but not a datum. 
Try to add the +towgs84=0,0,0,0,0,0,0 parameter.


Jean-Claude
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev