public static boolean worldFileValuesAppearGeographic(AVList values){
  double xLocation;
  double yLocation;
  double xPixelSize;
  double yPixelSize;
  Object o=values.getValue(WORLD_FILE_X_LOCATION);
  if (o != null && o instanceof Double)   xLocation=(Double)o;
 else   return false;
  o=values.getValue(WORLD_FILE_Y_LOCATION);
  if (o != null && o instanceof Double)   yLocation=(Double)o;
 else   return false;
  o=values.getValue(WORLD_FILE_X_PIXEL_SIZE);
  if (o != null && o instanceof Double)   xPixelSize=(Double)o;
 else   return false;
  o=values.getValue(WORLD_FILE_Y_PIXEL_SIZE);
  if (o != null && o instanceof Double)   yPixelSize=(Double)o;
 else   return false;
  return (Angle.isValidLongitude(xPixelSize) && Angle.isValidLatitude(yPixelSize) && Angle.isValidLongitude(xLocation)&& Angle.isValidLatitude(yLocation));
}

public static boolean worldFileValuesAppearGeographic ( AVList values ) { double xLocation ; double yLocation ; double xPixelSize ; double yPixelSize ; Object o = values . getValue ( WORLD_FILE_X_LOCATION ) ; if ( o != null && o instanceof Double ) xLocation = ( Double ) o ; else return false ; o = values . getValue ( WORLD_FILE_Y_LOCATION ) ; if ( o != null && o instanceof Double ) yLocation = ( Double ) o ; else return false ; o = values . getValue ( WORLD_FILE_X_PIXEL_SIZE ) ; if ( o != null && o instanceof Double ) xPixelSize = ( Double ) o ; else return false ; o = values . getValue ( WORLD_FILE_Y_PIXEL_SIZE ) ; if ( o != null && o instanceof Double ) yPixelSize = ( Double ) o ; else return false ; return ( Angle . isValidLongitude ( xPixelSize ) && Angle . isValidLatitude ( yPixelSize ) && Angle . isValidLongitude ( xLocation ) && Angle . isValidLatitude ( yLocation ) ) ; }
indicates whether world file values appear to be in latitude and longitude .
