Well, part of the problem seems to be that I was addressing a symbolic
link to the file and not the actual file itself.

Now that I'm addressing the file directly, BOTH files manage to create
the geo transform BUT NEITHER can generate the coordinate transformation
object (OGRCoordinateTransformation) .  Can anyone tell me why both
files give me the following message...?

 

ERROR 1:  No PROJ.4 translation for source SRS, coordinate
transformation initialization has failed.

 

I am using Linux SLES10 SP2, gdal-svn-trunk-2009.12.14 and
proj4-4.7.0-1.

 

Gary 

________________________________

From: [email protected]
[mailto:[email protected]] On Behalf Of Smart, Gary
Sent: 07 January 2010 18:25
To: [email protected]
Subject: [gdal-dev] geoTransforms and OGRSpatialTransforms

 

  // First create a spatial reference in the input space
  OGRSpatialReference iref;
  char *tmp = NULL;
  if (proj_ref)
  {
    tmp = (char *)malloc(strlen(proj_ref)+1);
    iref.importFromWkt(&tmp);
    //iref.SetWellKnownGeogCS("WGS84");

    // Create a spatial reference in WGS84 lat/long space and
    // create a transform object between input and output space
    OGRSpatialReference oref;
    oref.SetWellKnownGeogCS("WGS84");
    OGRCoordinateTransformation *coord_transform
      = OGRCreateCoordinateTransformation(&iref, &oref);
    if (!coord_transform)
    {
      fprintf(stderr, "!!!FAILED! Cannot create converter from %s "
              " to WGS84\n", proj_ref);

    } // end case default
    free(tmp);



 

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to