[gdal-dev] Swapped axes
Kees Kling
ckling at upcmail.nl
Sat Jul 28 01:58:24 PDT 2012
Soory Guys,
I already found the mistake. Somewhere on the line I mixed up my
coordinates and now it is working OK
Regards
Kees Kling
On 07/27/2012 01:01 PM, Kees Kling wrote:
> Hi,
>
> I'm trying to draw maps from shape data.
> For coordinate transformation I use as destination
>
> proj->importFromProj4(projString.c_str());
> where projString is "+proj=merc +k_0=0.02 +lat_0=90 +lon_0=0
> +a=6378.388 +b=6356.906"
>
> as source projection I take the
> oceanLayer->GetSpatialRef()
> the definition of the source
>
> After transforming and displaying the data, my imagery is flipped. I
> think it has to do with the fact that the data is in lon/lat format
> instead of lat/lon.
>
> How can I correct that. I tried to use
>
> proj->SetAxes("GEOGCS","Easting",OAO_East,"Northing",OAO_North);
> but this doesn't show any effect
>
> Regards
> Kees Kling
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
More information about the gdal-dev
mailing list