<div dir="ltr">Hello - I apologize if this is not the right place to ask this question. This is a question about a specific set of projections and coordinate transformations using the osr/ogr libraries.<div><br></div><div>Suppose I have two projections where the only thing that differs is the Central Meridian value. See below (these are from ArcGIS online by the way)</div><div><br></div><div>>>> p<br>'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-41.34804059746178],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]'<br></div><div>>>> p2 = """PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]"""<br></div><div><br></div><div>I can load these</div><div>>>> srs2 = osr.SpatialReference(wkt=p2)<br></div><div>>>> srs = osr.SpatialReference(wkt=p)<br></div><div><br></div><div>And then attempt a transformation</div><div>>>> transform_func = osr.CoordinateTransformation(srs2, srs)<br></div><div>>>> u = ogr.Geometry(ogr.wkbPoint)<br>>>> u.AddPoint(0,0)<br>>>> u.Transfrom(transform_func)<br></div><div><br></div><div>But the end result is the same point that I originally put in. </div><div>>>> u.ExportToWkt()<br>'POINT (0 0 0)'<br></div><div><br></div><div>I would (I think?) expect to see a different x value, due to the changing central meridian. In theory, the reprojected point should be offset some. Maybe I'm missing something - is this a bug or am I mis-understanding the role of Central Meridian in projections.<br></div><div><br></div><div>Regards</div><div><br></div><div>--</div><div>Tom Hayden</div></div>